Skip to main content

Module build

Module build 

Source
Expand description

Building the application a host serves.

Everything between a loaded configuration and a router answering requests: the pool, the schema cache, the REST surface, GraphQL and the layers around them. The postrust binary serves the result on a socket; the Lambda adapter hands the same router to the Lambda runtime. One path, so a request is answered the same way wherever it arrives – the Lambda adapter used to be a second copy of the request path, and that copy bound no parameters and switched to no role.

Structs§

App
The application, ready to serve.
Builder
Builds the application with routes of the caller’s own beside the API.
Host
What the host running the application can do beyond answering requests.

Constants§

RESERVED_PREFIXES
The paths the server serves itself, which a prefix given to Builder::nest may neither equal nor sit above or beneath.

Functions§

build
Connect, load the schema cache and build the router.