pub struct RequestPath { /* private fields */ }Expand description
The path of a request, decoded segment by segment, and whether its query names a method override.
Implementations§
Source§impl RequestPath
impl RequestPath
Sourcepub fn parse(target: &str) -> Result<Self, PathRefusal>
pub fn parse(target: &str) -> Result<Self, PathRefusal>
The path of target, a request line’s target, as the server would read
it; refused when the server could read it as another path.
Sourcepub fn overrides_method(&self) -> bool
pub fn overrides_method(&self) -> bool
Whether the query names a _method parameter (in any letter case or
encoding), or a parameter name that does not decode.
Trait Implementations§
Source§impl Clone for RequestPath
impl Clone for RequestPath
Source§impl Debug for RequestPath
impl Debug for RequestPath
impl Eq for RequestPath
Source§impl PartialEq for RequestPath
impl PartialEq for RequestPath
impl StructuralPartialEq for RequestPath
Auto Trait Implementations§
impl Freeze for RequestPath
impl RefUnwindSafe for RequestPath
impl Send for RequestPath
impl Sync for RequestPath
impl Unpin for RequestPath
impl UnsafeUnpin for RequestPath
impl UnwindSafe for RequestPath
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