Struct body_image::barc::Record[][src]

pub struct Record {
    pub rec_type: RecordType,
    pub meta: HeaderMap,
    pub req_headers: HeaderMap,
    pub req_body: BodyImage,
    pub res_headers: HeaderMap,
    pub res_body: BodyImage,
}

An owned BARC record with public fields.

Additonal getter methods are found in trait implementations RequestRecorded, Recorded, and MetaRecorded.

Fields

Record type.

Map of meta-headers for values which are not strictly part of the HTTP request or response headers. This can be extended with application specific name/value pairs.

Map of HTTP request headers.

Request body which may or may not be RAM resident.

Map of HTTP response headers.

Response body which may or may not be RAM resident.

Methods

impl Record
[src]

Attempt to convert Dialog to Record. This derives meta headers from various dialog components, and could potentially fail when parsing these values as header values. Once rust TryFrom stabilizes, this should be implemented as that trait instead.

Trait Implementations

impl Clone for Record
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Record
[src]

Formats the value using the given formatter. Read more

impl Default for Record
[src]

Returns the "default value" for a type. Read more

impl RequestRecorded for Record
[src]

Map of HTTP request headers.

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

impl Recorded for Record
[src]

Map of HTTP response headers.

Response body which may or may not be RAM resident.

impl MetaRecorded for Record
[src]

Record type.

Map of meta-headers for values which are not strictly part of the HTTP request or response headers. Read more

Auto Trait Implementations

impl Send for Record

impl Sync for Record