pub struct RequestTargetPath { /* private fields */ }
๐Deprecated: This crate has been renamed to http_tiny; youโre using an outdated version
Expand description
An absolute path as request target
ยงWarning
The path parser is pretty simple and basically follows two rules only:
- the path must either be a wildcard (
*
) or must begin with a slash (/
) - empty path components are ignored (i.e.
/
or//
etc. evaluate to[]
and/test//path
or/test//path/
etc. evaluate to["test", "path"]
)
Other potentially dangerous components like ..
are treated like normal components and will not cause an error.
Implementationsยง
Sourceยงimpl RequestTargetPath
impl RequestTargetPath
Sourcepub const fn new() -> Self
๐Deprecated: This crate has been renamed to http_tiny; youโre using an outdated version
pub const fn new() -> Self
Creates a new empty absolute path
Sourcepub fn push<T>(&mut self, component: T)
๐Deprecated: This crate has been renamed to http_tiny; youโre using an outdated version
pub fn push<T>(&mut self, component: T)
Pushes component
to self
Trait Implementationsยง
Sourceยงimpl Clone for RequestTargetPath
impl Clone for RequestTargetPath
Sourceยงfn clone(&self) -> RequestTargetPath
fn clone(&self) -> RequestTargetPath
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 moreSourceยงimpl Debug for RequestTargetPath
impl Debug for RequestTargetPath
Sourceยงimpl Default for RequestTargetPath
impl Default for RequestTargetPath
Sourceยงfn default() -> RequestTargetPath
fn default() -> RequestTargetPath
Returns the โdefault valueโ for a type. Read more
Sourceยงimpl<T> FromIterator<T> for RequestTargetPath
impl<T> FromIterator<T> for RequestTargetPath
Sourceยงfn from_iter<I: IntoIterator<Item = T>>(components: I) -> Self
fn from_iter<I: IntoIterator<Item = T>>(components: I) -> Self
Creates a value from an iterator. Read more
Sourceยงimpl IntoIterator for RequestTargetPath
impl IntoIterator for RequestTargetPath
Auto Trait Implementationsยง
impl Freeze for RequestTargetPath
impl RefUnwindSafe for RequestTargetPath
impl Send for RequestTargetPath
impl Sync for RequestTargetPath
impl Unpin for RequestTargetPath
impl UnwindSafe for RequestTargetPath
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