Skip to main contentCrate hooch_http
Source - HeaderKey
- Wrapper for HTTP header keys.
- HeaderValue
- Wrapper for HTTP header values.
- Headers
- Fixed-capacity container for HTTP headers.
- HoochApp
- A simple HTTP server built on the Hooch async runtime.
- HoochAppBuilder
- Builder for configuring and creating a
HoochApp instance. - HttpRequest
- Representation of a parsed HTTP request.
- HttpResponse
- Represents a fully built HTTP response.
- HttpResponseBuilder
- Builder struct for constructing an HTTP response.
- Key
- Lightweight wrapper for a borrowed string key (e.g., URI parameter name).
- Params
- Holds both path and query parameters extracted from a URI.
- PathSegment
- Marker type representing a URI path parameter segment (e.g.,
{id}). - QuerySegment
- Marker type representing a URI query parameter (e.g.,
?id=123). - Route
- Structure representing a single route with its associated HTTP method, path, and handler.
- Segment
- Generic container for key-value string pairs (e.g.,
("id", "123")),
parameterized over segment type (path or query). - Uri
- Struct representing a parsed URI, which may include path and query segments.
- Value
- Lightweight wrapper for a borrowed string value (e.g., URI or query value).
- HttpMethod
- Supported HTTP methods.
- HttpStatus
- Common HTTP status codes.
- HttpVersion
- Represents the supported HTTP protocol versions.
- Middleware
- Enum representing the outcome of middleware processing.