Skip to main content

Module serve

Module serve 

Source

Structs§

MountConfig
MountConfigBuilder
RequestHeaders
The headers of a browser’s request that change how the server renders a page, for ServerState::request_with_headers.
ResponseState
ServeOpts
ServeOptsInner
ServerState

Functions§

request_accept_language
Accept-Language header of the request, for ServerState::request_with_headers.
request_cookie
Cookie header of the request, for ServerState::request_with_cookie.
run
vary_accept_encoding
Middleware making every response Compress would compress for a client accepting it say Vary: accept-encoding, also when sent as it is.
vertigo_files
Install only the build’s static files, the precompressed ones too if MountConfigBuilder::precompress asked for them - for a back-end that renders the pages by itself, f. ex. with redirects before SSR, and calls vertigo_handler or ServerState on its own.
vertigo_handler
Directly attach SSR mechanism to the actix web server (no static files mounting)
vertigo_install
Install vertigo handler and static files based on mount config.