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
http_url: Option<String>
Request target in http message
headers: HashMap<String, String>
Http headers
status: Option<HttpStatus>
Http status code
request_body: Vec<u8>
Request body in raw bytes
response_body: Vec<u8>
Response body in raw bytes
Methods
impl Controller
[src]
fn set_content_type(&mut self, s: &str)
[src]
Set Content-Type field in http headers.
Trait Implementations
impl Clone for Controller
[src]
fn clone(&self) -> Controller
[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 Default for Controller
[src]
fn default() -> Controller
[src]
Returns the "default value" for a type. Read more
impl Debug for Controller
[src]
impl PartialEq for Controller
[src]
fn eq(&self, __arg_0: &Controller) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Controller) -> bool
[src]
This method tests for !=
.