Skip to main content

Module http

Module http 

Source
Available on crate features http and std only.
Expand description

rama http support

mostly contains re-exports from rama-http and rama-http-backend.

Modules§

body
extra http body types and utilities.
clienthttp-full
rama http client support
conn
HTTP connection utilities.
convert
Modules for conversions between types or data.
corehttp-full
Rama http protocol implementation and low level utilities.
fingerprint
HTTP fingerprint implementations (JA4H, Akamai HTTP/2).
grpcgrpc
rama-grpc
header
Forked from the http crate — vendored so rama owns its HTTP header types. See docs/thirdparty/fork/README.md. The fork-style lint allows below also cover the name/value/map child modules.
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 rama_http_types::Requests.
mime
Re-export of the mime crate.
opentelemetry
Opentelemetry utilities
proto
High level pertaining to the HTTP message protocol.
protocols
Protocols that are often built on top of HTTP.
proxyhttp-full
request
response
serverhttp-full
Rama HTTP server module, which provides the HttpServer type to serve HTTP requests.
service
Http Services provided by Rama.
sse
Server-Sent Events (SSE) support
tlstls
tls features provided from the http layer.
utils
Utilities for HTTP.
wsws
WebSocket (WS) support for rama (RFC 6455).

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.
BodyLimitLayer
Limit the size of the request and/or response bodies.
BodyLimitService
Communicate to the downstream http service to apply a limit to the body.
HeaderMap
A specialized multimap for header names and values.
HeaderName
Represents an HTTP header field name
HeaderValue
Represents an HTTP header field value.
HttpError
A generic “error” for HTTP connections.
InfiniteReader
A(n) (in)finite random byte stream implementing [AsyncRead].
Method
The Request Method (VERB)
Request
Represents an HTTP request.
Response
Represents an HTTP response
StatusCode
An HTTP status code (status-code in RFC 9110 et al.).
Version
Represents a version of the HTTP spec.

Traits§

BodyExtractExt
An extension trait for StreamingBody that provides methods to extract data from it.
StreamingBody
Trait representing a streaming body of a Request or Response.

Type Aliases§

HttpResult
A Result typedef to use with the Error type.