Starship.Reactor (Starship v0.0.1) View Source
The main request handler for the Starship
Webserver.
When a message is passed to a Starship.Drive
process,
a Starship.Reactor
process is spawned to handle the request.
Link to this section Summary
Types
The connection state of the port and socket.
Link to this section Types
Specs
connection_state() :: :close | :keepalive
The connection state of the port and socket.
If set to :close
, then the socket and port will return a Connection: Close header
and close.
If set to :keepalive
, then the socket and port will return a Connection: Keep-Alive header
and stay open.
Link to this section Functions
Specs
build_conn(non_neg_integer(), binary()) :: {:ok, Starship.Reactor.Conn.t(), binary()} | {:error, Exception.t()}
Specs
Specs
handle_request({non_neg_integer(), non_neg_integer()}, binary(), map()) :: map() | true
Specs
header_too_large(map()) :: true
Specs
http_version_not_supported(map()) :: true
Specs
Specs
method_not_allowed(map()) :: true
Specs
on_close(map()) :: true
Specs
Specs
Specs
process_request(Starship.Reactor.Conn.t(), binary(), map()) :: map()
Specs
websocket?(Starship.Reactor.Conn.headers()) :: boolean()