pub struct Response {
pub status: StatusCode,
pub version: Version,
pub headers: HeaderMap<HeaderValue>,
pub body: Body,
}
Expand description
Http response type of roa.
Fields
status: StatusCode
Status code.
version: Version
Version of HTTP protocol.
headers: HeaderMap<HeaderValue>
Raw header map.
body: Body
Response body.
Methods from Deref<Target = Body>
Write stream.
Write reader with default chunk size.
Write reader with chunk size.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Response
impl !UnwindSafe for Response
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more