The request path
-
Configuration
main.rsloads config and resolves the address, workers, and TLS files. -
Connection acceptance
server.rsaccepts TCP connections and starts a Hyper task for each one. -
TLS handshake
When enabled, rustls checks the server credentials and, with mTLS, the client certificate.
-
HTTP parsing
Hyper parses HTTP/1.x or HTTP/2. Pixie accepts GET and HEAD, then passes the path to the router.
-
Route and file
The request host selects a site folder; the URL path selects a file inside it. Pixie resolves common MIME types and can fall back to
index.htmlfor a single-page app. -
Response
Hyper sends the status, headers, and body. HEAD returns the same headers without a body. HTTP/1 connections close after one response.