Struct body_image::Dialog [] [src]

pub struct Dialog { /* fields omitted */ }

An HTTP request and response recording.

Note that several important getter methods for Dialog are found in trait implementations RequestRecorded and Recorded.

Methods

impl Dialog
[src]

[src]

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

[src]

The complete URL as used in the request.

[src]

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

[src]

The response status code.

[src]

The response HTTP version.

[src]

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

[src]

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

[src]

Attempt to clone self and return a new Dialog. See BodyImage::try_clone for details of fallibility and other nuances.

Trait Implementations

impl Debug for Dialog
[src]

[src]

Formats the value using the given formatter. Read more

impl RequestRecorded for Dialog
[src]

[src]

Map of HTTP request headers.

[src]

Request body (e.g for HTTP POST, etc.) which may or may not be RAM resident. Read more

impl Recorded for Dialog
[src]

[src]

Map of HTTP response headers.

[src]

Response body which may or may not be RAM resident.

Auto Trait Implementations

impl Send for Dialog

impl Sync for Dialog