pub struct ProcessedRequestResponse {
pub oheaders: HeaderMap<HeaderValue>,
pub obody: Vec<u8>,
pub ourl: Url,
pub ostatus: Option<StatusCode>,
pub omethod: Method,
pub tpe: PrrType,
}Expand description
TODO
Fields§
§oheaders: HeaderMap<HeaderValue>§obody: Vec<u8>§ourl: Url§ostatus: Option<StatusCode>§omethod: Method§tpe: PrrTypeImplementations§
Source§impl ProcessedRequestResponse
impl ProcessedRequestResponse
pub fn new_request(url: &Url, method: &Method) -> Self
pub fn new_response(url: &Url, method: &Method) -> Self
Trait Implementations§
Source§impl Debug for ProcessedRequestResponse
impl Debug for ProcessedRequestResponse
Source§impl Prr<Vec<u8>> for ProcessedRequestResponse
impl Prr<Vec<u8>> for ProcessedRequestResponse
fn headers(&self) -> Vec<(String, HeaderValue)>
fn set_header_value(&mut self, header: &str, value: &str) -> Result<()>
fn remove_header(&mut self, header: &str) -> Result<()>
fn add_header(&mut self, header: &str, value: &str) -> Result<()>
fn url(&self) -> Result<Url>
fn set_url(&mut self, url: &Url) -> Result<()>
fn set_status(&mut self, response: &u16) -> Result<()>
fn clear_headers(&mut self) -> Result<()>
fn set_body(&mut self, body: &Vec<u8>) -> Result<()>
fn get_body(&self) -> Result<&Vec<u8>>
fn get_status(&self) -> Result<StatusCode>
fn set_method(&mut self, method: &Method) -> Result<()>
fn get_method(&self) -> Method
Auto Trait Implementations§
impl Freeze for ProcessedRequestResponse
impl RefUnwindSafe for ProcessedRequestResponse
impl Send for ProcessedRequestResponse
impl Sync for ProcessedRequestResponse
impl Unpin for ProcessedRequestResponse
impl UnsafeUnpin for ProcessedRequestResponse
impl UnwindSafe for ProcessedRequestResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more