Skip to main content

build_app

Function build_app 

Source
pub fn build_app(
    state: AppState,
) -> App<impl ServiceFactory<ServiceRequest, Config = (), Response = ServiceResponse<EitherBody<EitherBody<BoxBody>>>, Error = Error, InitError = ()>>
Expand description

Build the complete actix App for the Solid Pod server. Both the binary (main.rs) and the workspace integration tests call this.

The returned App is fully-configured: route table, normaliser, path-traversal guard, dotfile allowlist, body cap, CORS middleware (when available), rate-limit middleware (when available), and WAC enforcement.