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§
Sourcefn get_serialized_body(&self) -> Result<Vec<u8>>
fn get_serialized_body(&self) -> Result<Vec<u8>>
Get a serialized copy of the request body.