pub struct WafRequest {
pub client_ip: IpAddr,
pub method: String,
pub path: String,
pub query: Option<String>,
pub headers: HashMap<String, String>,
pub body: Option<String>,
pub user_agent: Option<String>,
}Expand description
A protocol-agnostic representation of an HTTP request.
Fields§
§client_ip: IpAddr§method: String§path: String§query: Option<String>§headers: HashMap<String, String>§body: Option<String>§user_agent: Option<String>Trait Implementations§
Source§impl Clone for WafRequest
impl Clone for WafRequest
Source§fn clone(&self) -> WafRequest
fn clone(&self) -> WafRequest
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for WafRequest
impl RefUnwindSafe for WafRequest
impl Send for WafRequest
impl Sync for WafRequest
impl Unpin for WafRequest
impl UnsafeUnpin for WafRequest
impl UnwindSafe for WafRequest
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