[][src]Module tophat::server

Re-exports

pub use self::error::ServerError;
pub use self::glitch::Glitch;
pub use self::glitch::Result;

Modules

cors

Cors module

error

Errors that indicate system failure, user error in using tophat, or closed connection.

glitch

Response type for handling Endpoint errors.

identity

bare-bones Identity service

router

Very Basic router

Structs

ResponseWriter

ResponseWriter has two responsibilities:

ResponseWritten

A marker to ensure that a response is written inside a request handler.

ServerOpts

Options for the tophat server.

Functions

accept

Accept a new incoming Http/1.1 connection

accept_with_opts

Accept a new incoming Http/1.1 connection