Skip to main content

Module app

Module app 

Source

Structs§

App
A ling-http application: an axum Router pre-wired with the middleware every service on this framework wants (tracing, timeouts, a body-size cap, CORS), plus HTTPS serving helpers.

Functions§

serve_http
Serves router over plain HTTP. Use this only behind a reverse proxy that terminates TLS (matches how the other linglin.art sites are deployed); for a service that must terminate TLS itself, use serve_tls or [serve_dev_tls] instead.
serve_tls
Serves router over HTTPS using a certificate/key pair loaded from disk (PEM format). This is real TLS termination — use it when there’s no reverse proxy in front of the service.