h1_server (h1 v0.9.0)
View SourceHTTP/1.1 server connection loop.
Each accepted connection spawns an h1_server process. It owns the socket, performs the TLS handshake (in ssl mode), starts an h1_connection in server mode, and dispatches request events to the user handler.
Summary
Functions
Serve a socket the caller already accepted (and, for TLS, already handshaked). Waits for h1:serve_socket/2 to transfer socket ownership, then runs the same connection loop as an accepted connection — no handshake, no listener registration.
Types
Functions
Serve a socket the caller already accepted (and, for TLS, already handshaked). Waits for h1:serve_socket/2 to transfer socket ownership, then runs the same connection loop as an accepted connection — no handshake, no listener registration.