Struct http_tiny::RequestTargetPath
source · [−]pub struct RequestTargetPath { /* private fields */ }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//pathor/test//path/etc. evaluate to["test", "path"])
Other potentially dangerous components like .. are treated like normal components and will not cause an error.
Implementations
Trait Implementations
sourceimpl Clone for RequestTargetPath
impl Clone for RequestTargetPath
sourcefn clone(&self) -> RequestTargetPath
fn clone(&self) -> RequestTargetPath
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RequestTargetPath
impl Debug for RequestTargetPath
sourceimpl Default for RequestTargetPath
impl Default for RequestTargetPath
sourcefn default() -> RequestTargetPath
fn default() -> RequestTargetPath
Returns the “default value” for a type. Read more
sourceimpl<T> FromIterator<T> for RequestTargetPath where
T: Into<Vec<u8>>,
impl<T> FromIterator<T> for RequestTargetPath where
T: Into<Vec<u8>>,
sourcefn 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
sourceimpl IntoIterator for RequestTargetPath
impl IntoIterator for RequestTargetPath
Auto Trait Implementations
impl RefUnwindSafe for RequestTargetPath
impl Send for RequestTargetPath
impl Sync for RequestTargetPath
impl Unpin for RequestTargetPath
impl UnwindSafe for RequestTargetPath
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more