Struct copra::controller::Controller [] [src]

pub struct Controller {
    pub http_url: Option<String>,
    pub headers: HashMap<String, String>,
    pub status: Option<HttpStatus>,
    pub request_body: Vec<u8>,
    pub response_body: Vec<u8>,
}

Expose more message details to service provider, and help to process http requests.

Fields

Request target in http message

Http headers

Http status code

Request body in raw bytes

Response body in raw bytes

Methods

impl Controller
[src]

[src]

Set Content-Type field in http headers.

Trait Implementations

impl Clone for Controller
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Controller
[src]

[src]

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

impl Debug for Controller
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Controller
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.