Bandit.HTTPRequest behaviour (Bandit v0.1.0) View Source
Defines behaviour to be implemented by HTTP Request handlers in addition
to those defined by Plug.Conn.Adapter
.
Link to this section Summary
Link to this section Types
Specs
payload() :: term()
Link to this section Callbacks
Specs
close(payload()) :: :ok
Specs
get_local_data(payload()) :: Plug.Conn.Adapter.peer_data()
Specs
keepalive?(payload()) :: bool()
Specs
Specs
request(ThousandIsland.Socket.t()) :: {:ok, module(), payload()}
Specs
send_fallback_resp(payload(), code :: pos_integer()) :: :ok