Enum kvarn::comprash::UriKey

source ·
pub enum UriKey {
    Path(CompactString),
    PathQuery(PathQuery),
}
Expand description

A key for an Uri used in ResponseCache.

This is, for now, an opaque type in it’s API. Though, you can extract the path and query through matching.

Variants§

§

Path(CompactString)

Uri with only a path component.

Searching the cache with this should be avoided. See Self::call_all.

§

PathQuery(PathQuery)

Uri with a path and optional query.

See PathQuery.

Implementations§

source§

impl UriKey

source

pub fn path_and_query(uri: &Uri) -> Self

Constructs a new UriKey from uri.

This variant will math both