pub struct RequestRecord<B> { /* private fields */ }
Expand description
An http::Request
and recording. Note that other important getter
methods for RequestRecord
are found in trait implementation
RequestRecorded
.
Limitations: This can’t be Clone
, because http::Request
currently
isn’t Clone
. Also note that as used as type B
, hyper::Body
also
isn’t Clone
.
The HTTP method (verb), e.g. GET
, POST
, etc.
The complete URL as used in the request.
Formats the value using the given formatter.
Read more
Map of HTTP request headers.
Request body (e.g for HTTP POST, etc.) which may or may not be RAM
resident.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.