Skip to main content

create_router

Function create_router 

Source
pub fn create_router(
    config: HttpServerConfig,
) -> Result<Router, HttpServerError>
Expand description

Builds the read-only HTTP router after validating bind and authentication policy.

Requests executed directly against this router without transport connection metadata are rate-limited as loopback requests.

ยงErrors

Returns HttpServerError::InvalidConfiguration for an empty workspace or for an anonymous non-loopback bind.