h1_server (h1 v0.2.0)

View Source

HTTP/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

Types

transport/0

-type transport() :: gen_tcp | ssl.

Functions

init_accepted(Parent, Socket, Transport, Handler, ConnOpts, ServerOpts)

-spec init_accepted(pid(), term(), transport(), term(), map(), map()) -> ok.