Struct tokio_http2::Response
[−]
[src]
pub struct Response { pub headers: Headers, pub body: Body, pub status_message: StatusMessage, pub code: u16, pub message: String, }
Fields
headers: Headers
body: Body
status_message: StatusMessage
code: u16
message: String
Methods
impl Response
[src]
fn new() -> Response
fn with_body(self, body: Body) -> Self
fn with_header(self, name: &str, val: &str) -> Self
fn with_status(self, code: StatusCode) -> Self
fn status_code(self, code: u16, message: &str) -> Self
fn content_length(&self) -> u64
fn header(&self, key: &str) -> Option<&str>
Trait Implementations
impl Clone for Response
[src]
fn clone(&self) -> Response
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more