Crate rama_http

Source
Expand description

rama http services, layers and utilities

§Rama

Crate used by the end-user rama crate and rama crate authors alike.

Learn more about rama:

Modules§

dep
Dependencies for rama http modules.
header
HTTP header types
headers
typed http headers
io
http I/O utilities, e.g. writing http requests/responses in std http format.
layer
Http Layers provided by Rama.
matcher
service::Matchers implementations to match on http::Requests.
proto
High level pertaining to the HTTP message protocol.
response
Types and traits for generating responses.
service
Http Services provided by Rama.
utils
Utilities for HTTP.

Structs§

Body
The body type used in rama requests and responses.
BodyDataStream
A stream of data frames.
BodyLimit
Can be used to communicate the desire to limit the size of request/response bodies.
HeaderMap
A set of HTTP headers
HeaderName
Represents an HTTP header field name
HeaderValue
Represents an HTTP header field value.
Method
The Request Method (VERB)
Scheme
Represents the scheme component of a URI
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Uri
The URI component of a request.
Version
Represents a version of the HTTP spec.

Traits§

BodyExtractExt
An extension trait for Body that provides methods to extract data from it.
IntoResponse
Trait for generating responses.

Type Aliases§

Request
Type alias for http::Request whose body type defaults to Body, the most common body type used with rama.
Response
Type alias for http::Response whose body type defaults to Body, the most common body type used with rama.