pub struct HttpCertificationPath<'a>(/* private fields */);
Expand description
A path to an HttpCertification in an HttpCertificationTree.
Two variants are supported:
-
The Exact variant is used for paths that match a full URL path. For example,
HttpCertificationPath::exact('/foo')
will match the URL path/foo
but not/foo/bar
or/foo/baz
. -
The Wildcard variant is used for paths that match a URL path prefix. For example,
HttpCertificationPath::wildcard('/foo')
will match the URL paths/foo/bar
and/foo/baz
.
Implementations§
Source§impl<'a> HttpCertificationPath<'a>
impl<'a> HttpCertificationPath<'a>
Sourcepub fn exact(path: impl Into<Cow<'a, str>>) -> Self
pub fn exact(path: impl Into<Cow<'a, str>>) -> Self
An exact path to an HttpCertification in an HttpCertificationTree. This path will match only HttpRequest URL paths that are exactly the same as the given path.
Sourcepub fn wildcard(path: impl Into<Cow<'a, str>>) -> Self
pub fn wildcard(path: impl Into<Cow<'a, str>>) -> Self
A wildcard path to an HttpCertification in an HttpCertificationTree. This path will match all HttpRequest URL paths that start with the given prefix.
Sourcepub fn to_expr_path(&self) -> Vec<String>
pub fn to_expr_path(&self) -> Vec<String>
Converts this path into a format suitable for use in the expr_path
field of the IC-Certificate
header.
Trait Implementations§
Source§impl<'a> Clone for HttpCertificationPath<'a>
impl<'a> Clone for HttpCertificationPath<'a>
Source§fn clone(&self) -> HttpCertificationPath<'a>
fn clone(&self) -> HttpCertificationPath<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more