Bandit.InitialHandler (Bandit v0.3.4) View Source

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

Link to this section Summary

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

handle_close(socket, state)

View Source

Callback implementation for ThousandIsland.Handler.handle_close/2.

Link to this function

handle_data(data, socket, state)

View Source

Callback implementation for ThousandIsland.Handler.handle_data/3.

Link to this function

handle_error(error, socket, state)

View Source

Callback implementation for ThousandIsland.Handler.handle_error/3.

Link to this function

handle_shutdown(socket, state)

View Source

Callback implementation for ThousandIsland.Handler.handle_shutdown/2.