ThousandIsland.Handlers.HTTPHelloWorld (Thousand Island v0.4.0) View Source

A sample Handler implementation of a simple HTTP Server. Intended to be the simplest thing that can answer a browser request and nothing more. Not even remotely strictly HTTP compliant.

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_connection(socket, state)

View Source

Callback implementation for ThousandIsland.Handler.handle_connection/2.

Link to this function

handle_error(error, socket, state)

View Source

Callback implementation for ThousandIsland.Handler.handle_error/3.