Builder

Trait Builder 

Source
pub trait Builder<R> {
    // Required methods
    fn header(&mut self, key: &str, value: HeaderValue);
    fn body(&mut self, bytes: Vec<u8>) -> Result<R>;
    fn finish(&mut self) -> Result<R>;
}
Available on crate features http-0-2-binding or actix or warp only.

Required Methods§

Source

fn header(&mut self, key: &str, value: HeaderValue)

Source

fn body(&mut self, bytes: Vec<u8>) -> Result<R>

Source

fn finish(&mut self) -> Result<R>

Implementations on Foreign Types§

Source§

impl Builder<HttpResponse> for HttpResponseBuilder

Available on crate feature actix only.
Source§

fn header(&mut self, key: &str, value: HeaderValue)

Available on crate features http-0-2-binding or actix or warp only.
Source§

fn body(&mut self, bytes: Vec<u8>) -> Result<HttpResponse>

Available on crate features http-0-2-binding or actix or warp only.
Source§

fn finish(&mut self) -> Result<HttpResponse>

Available on crate features http-0-2-binding or actix or warp only.

Implementors§