Expand description
Code once, support every Rust webserver!
Re-exports§
pub use form_urlencoded;pub use http;
Structs§
- Endpoint
- is a generic HTTP endpoint. This wraps around the HttpEndpoint trait providing support for each of the HTTP servers without the HttpEndpoint trait needing to be imported into the code intended to use the endpoint.
- Generic
Endpoint - is an easy way of constructing an endpoint from an async function you provide.
- Request
- Represent a HTTP request
Enums§
- Error
- a generic error type to represent all possible errors from httpz
- Server
- Server represents the server that the request is coming from.
Traits§
- Endpoint
Fn - represents an async function used to handle the HTTP request. I would highly recommend using [GenericHttpEndpoint] instead of implementing this trait yourself.
- Http
Endpoint - is a endpoint defined on the http router corresponding to a specific URL. An endpoint may handle any number of HTTP methods. Your library should create an HttpEndpoint and return it to the user so they can register it with the HTTP router of the web framework they are using. For most use cases you will want GenericHttpEndpoint instead of implementing this trait yourself.
- Http
Response - TODO