API Reference Bandit v0.2.3

Modules

Defines a Bandit server as part of a supervision tree. A typical child spec to start a Bandit server hosting a plug looks like

Defines behaviour to be implemented by HTTP Adapters in addition to those defined by Plug.Conn.Adapter.

Raised by bandit adapters if they are commanded to read a body which already been read.

Raised by bandit adapters if they are commanded to send a response when one has already been sent.

Raised by bandit adapters if they are commanded to send a request before request headers have been read.

Delegates all inplementation of the ThousandIsland.Handler behaviour to an implementation specified in state. Allows for clean separation between protocol implementations & friction free protocol selection & upgrades.

An HTTP 1.0 & 1.1 Thousand Island Handler

The initial protocol implementation used for all connections. Switches to a specific protocol implementation based on configuration, ALPN negotiation, and line heuristics.