Struct commonlib::http::HttpRequest
source · pub struct HttpRequest {
pub method: String,
pub uri: Uri,
pub query_pairs: IndexMap<String, String>,
pub version: String,
pub headers: IndexMap<String, String>,
pub body: Option<String>,
}Fields§
§method: String§uri: Uri§query_pairs: IndexMap<String, String>§version: String§headers: IndexMap<String, String>§body: Option<String>Implementations§
source§impl HttpRequest
impl HttpRequest
pub fn get_header(&self, header_name: &String) -> Option<&String>
Trait Implementations§
source§impl Clone for HttpRequest
impl Clone for HttpRequest
source§fn clone(&self) -> HttpRequest
fn clone(&self) -> HttpRequest
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for HttpRequest
impl Debug for HttpRequest
source§impl Default for HttpRequest
impl Default for HttpRequest
source§fn default() -> HttpRequest
fn default() -> HttpRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HttpRequest
impl RefUnwindSafe for HttpRequest
impl Send for HttpRequest
impl Sync for HttpRequest
impl Unpin for HttpRequest
impl UnwindSafe for HttpRequest
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