Skip to main content

Module server

Module server 

Source
Expand description

Data-plane HTTP server: accepts client connections, matches routes, and runs the matched policy graph for each request.

Re-exports§

pub use listener::start_server;

Modules§

listener
Data-plane listener: the hyper accept loop and per-request handler. It serves plain HTTP or, when system.tls is set, TLS-terminated HTTPS; over either transport it speaks HTTP/1.1 and (when system.http2.enabled) HTTP/2, negotiated per connection. For each request it matches a route, builds the Context, executes the route’s CompiledGraph, and writes Context.response back to the client.
tls
TLS termination and protocol (HTTP/1.1 vs HTTP/2) selection for the listeners.
websocket
WebSocket proxying: detect a client upgrade, open the matching upstream WebSocket handshake, and relay the two upgraded connections byte-for-byte.