Struct http_header::RequestTargetPath [−][src]
pub struct RequestTargetPath { /* fields omitted */ }
👎 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
👎 Deprecated: This crate has been renamed to http_tiny; you’re using an outdated version
👎 Deprecated:
This crate has been renamed to http_tiny; you’re using an outdated version
Creates a new empty absolute path
👎 Deprecated: This crate has been renamed to http_tiny; you’re using an outdated version
👎 Deprecated:
This crate has been renamed to http_tiny; you’re using an outdated version
Pushes component
to self
👎 Deprecated: This crate has been renamed to http_tiny; you’re using an outdated version
👎 Deprecated:
This crate has been renamed to http_tiny; you’re using an outdated version
Loads an absolute string
Trait Implementations
Returns the “default value” for a type. Read more
Creates a value from an iterator. Read more
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
Mutably borrows from an owned value. Read more