Struct zap::Response
[−]
[src]
pub struct Response { /* fields omitted */ }
The result of an outgoing request
Methods
impl Response
[src]
fn new() -> Response
[src]
fn status(&mut self, code: usize) -> &mut Response
[src]
Set the status code
fn header(&mut self, name: &str, val: &str) -> &mut Response
[src]
Set a header with value
fn body(&mut self, s: &str) -> &mut Response
[src]
Set the response body
fn body_raw(&mut self, s: &[u8]) -> &mut Response
[src]
Write raw data to the body