pub struct InspectorUserAgent { /* private fields */ }Expand description
InspectorUserAgent
Mengecek User-Agent yang mencurigakan. Heuristic sederhana:
- Kosong / tidak ada -> Medium
- Mengandung keyword berisiko -> Medium
- Terlalu panjang -> High
Implementations§
Trait Implementations§
Source§impl Inspector for InspectorUserAgent
impl Inspector for InspectorUserAgent
fn inspect( &self, ctx: &RequestContext, ) -> Result<Option<InspectorFinding>, BulwarkError>
Auto Trait Implementations§
impl Freeze for InspectorUserAgent
impl RefUnwindSafe for InspectorUserAgent
impl Send for InspectorUserAgent
impl Sync for InspectorUserAgent
impl Unpin for InspectorUserAgent
impl UnwindSafe for InspectorUserAgent
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