Struct warp::filters::path::Peek [−][src]
pub struct Peek { /* fields omitted */ }
Represents that tail part of a request path, returned by the tail()
filter.
Methods
impl Peek
[src]
impl Peek
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
Get the &str
representation of the remaining path.
pub fn segments(
&self
) -> impl Iterator<Item = &str>
[src]
pub fn segments(
&self
) -> impl Iterator<Item = &str>
Get an iterator over the segments of the peeked path.