[][src]Trait fastly::request::RequestExt

pub trait RequestExt {
    fn send(self, backend: &str, ttl: i32) -> Result<Response<Body>, Error>;
fn inner_to_body(self) -> Result<Request<Body>, Error>;
fn inner_to_bytes(self) -> Result<Request<Vec<u8>>, Error>; }

Required methods

fn send(self, backend: &str, ttl: i32) -> Result<Response<Body>, Error>

Send a request via the given backend, returning as soon as the headers are available.

fn inner_to_body(self) -> Result<Request<Body>, Error>

Replace the body of a request with a Body with the same contents.

fn inner_to_bytes(self) -> Result<Request<Vec<u8>>, Error>

Replace the body of a request with the remaining contents of its body.

Note that this will involve copying and buffering the body, and so should only be used for convenience on small request bodies.

Loading content...

Implementors

impl RequestExt for Request<Body>[src]

impl<T: AsRef<[u8]>> RequestExt for Request<T>[src]

Loading content...