pub trait CupRequest {
    // Required methods
    fn get_uri(&self) -> &str;
    fn set_uri(&mut self, uri: String);
    fn get_serialized_body(&self) -> Result<Vec<u8>>;
}
Expand description

An interface to an under-construction server request, providing read/write access to the URI and read access to the serialized request body.

Required Methods§

source

fn get_uri(&self) -> &str

Get the request URI.

source

fn set_uri(&mut self, uri: String)

Set a new request URI.

source

fn get_serialized_body(&self) -> Result<Vec<u8>>

Get a serialized copy of the request body.

Implementors§