Expand description
The HTTP API, served over TLS only.
Structs§
- App
- What the API serves from.
- Limits
- The limits from configuration that the API applies to every request.
Enums§
- TlsError
- Why the TLS configuration could not be made.
Constants§
- OPENAPI
- The OpenAPI description of every route, as
GET /openapi.jsonserves it and the website publishes it.
Functions§
- router
- The routes, served from
app. - serve
- Serves
apponlistenerover TLS untilshutdowncompletes. A connection whose handshake fails, such as plain HTTP, is dropped; the server goes on. - tls_
config - The server’s TLS configuration from a PEM certificate chain and a PEM private key.