Crate highnoon

Source

Re-exports§

pub use headers;

Modules§

filter
ws

Structs§

App
The main entry point to highnoon. An App can be launched as a server or mounted into another App. Each App has a chain of Filters which are applied to each request.
Form
A Wrapper to return Form data. This can be wrapped over any serde::Serialize type.
Json
A Wrapper to return a JSON payload. This can be wrapped over any serde::Serialize type.
Method
The Request Method (VERB)
Mime
A parsed mime or media type.
Request
An incoming request
Response
A response to be returned to the client. You do not always need to use this struct directly as endpoints can return anything implementing Responder. However this is the most flexible way to construct a reply, and it implements Responder (the “identity” implementation).
Route
Returned by App::at and attaches method handlers to a route.
StatusCode
An HTTP status code (status-code in RFC 7230 et al.).

Enums§

Error
Error type expected to be returned by endpoints.
Message
An enum representing the various forms of a WebSocket message.

Traits§

Endpoint
Implement Endpoint for a type to be used as a method handler.
Responder
This trait is implemented for all the common types you can return from an endpoint
State
State must be implemented for any type being used as the App’s state

Type Aliases§

Result