pub struct RequestSurfaces<'a> {
pub url_path: Option<&'a str>,
pub query_params: &'a [(String, String)],
pub headers: &'a [(String, String)],
pub content_type: &'a str,
pub raw_body: &'a str,
}Expand description
The request surfaces one scan pass covers (the detectThreat input
shape). Headers and query params are (name, value) pairs; body values
are the crate::body_scan extraction’s output.
Fields§
§url_path: Option<&'a str>The URL path, scanned first under the url_path context.
query_params: &'a [(String, String)]Query parameter pairs, scanned under the query_param context.
headers: &'a [(String, String)]Header pairs, scanned under the header context.
content_type: &'a strContent type of raw_body (the body extraction’s router).
raw_body: &'a strThe raw request body, extracted into scan values when
ResolvedExclusions::scan_body is set.
Trait Implementations§
Source§impl<'a> Clone for RequestSurfaces<'a>
impl<'a> Clone for RequestSurfaces<'a>
Source§impl<'a> Debug for RequestSurfaces<'a>
impl<'a> Debug for RequestSurfaces<'a>
Auto Trait Implementations§
impl<'a> Freeze for RequestSurfaces<'a>
impl<'a> RefUnwindSafe for RequestSurfaces<'a>
impl<'a> Send for RequestSurfaces<'a>
impl<'a> Sync for RequestSurfaces<'a>
impl<'a> Unpin for RequestSurfaces<'a>
impl<'a> UnsafeUnpin for RequestSurfaces<'a>
impl<'a> UnwindSafe for RequestSurfaces<'a>
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