Struct body_image::Dialog

source ·
pub struct Dialog { /* private fields */ }
Expand description

An HTTP request and response recording.

This composed type has private fields but offers getters, mutable getters and setter methods. Several import getter methods are are found in trait implementations RequestRecorded and Recorded.

It may be constructed via the Prolog and Epilog public structs and the explode method used to extract the same.

Implementations§

Construct from a Prolog and Epilog.

The HTTP method (verb), e.g. GET, POST, etc.

The complete URL as used in the request.

A mutable reference to the request body. This is primarly provided to allow state mutating operations such as BodyImage::mem_map.

The response status code.

The response HTTP version.

A list of encodings that were removed (decoded) to provide this representation of the response body (res_body). May be empty.

A mutable reference to the response body. This is primarly provided to allow state mutating operations such as BodyImage::mem_map.

Set a new response body and decoded vector.

Consume self, exploding into a (Prolog, Epilog) tuple (each with public fields).

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Map of HTTP response headers.
Response body which may or may not be RAM resident.
Map of HTTP request headers.
Request body (e.g for HTTP POST, etc.) which may or may not be RAM resident. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. 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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.