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]
pub fn method(&self) -> &Method
[src]
The HTTP method (verb), e.g. GET
, POST
, etc.
pub fn url(&self) -> &Uri
[src]
The complete URL as used in the request.
pub fn req_body_mut(&mut self) -> &mut BodyImage
[src]
A mutable reference to the request body. This is primarly provided
to allow state mutating operations such as BodyImage::mem_map
.
pub fn res_status(&self) -> StatusCode
[src]
The response status code.
pub fn res_version(&self) -> Version
[src]
The response HTTP version.
pub fn res_decoded(&self) -> &Vec<Encoding>
[src]
A list of encodings that were removed (decoded) to provide this
representation of the response body (res_body
). May be empty.
pub fn res_body_mut(&mut self) -> &mut BodyImage
[src]
A mutable reference to the response body. This is primarly provided
to allow state mutating operations such as BodyImage::mem_map
.
pub fn try_clone(&self) -> Result<Dialog, BodyError>
[src]
Clone self and return a new Dialog
. This is currently infallible and
deprecated in favor of clone
.
Trait Implementations
impl Clone for Dialog
[src]
fn clone(&self) -> Dialog
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Dialog
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl RequestRecorded for Dialog
[src]
fn req_headers(&self) -> &HeaderMap
[src]
Map of HTTP request headers.
fn req_body(&self) -> &BodyImage
[src]
Request body (e.g for HTTP POST, etc.) which may or may not be RAM resident. Read more