Skip to main content

ExtensionsExt

Trait ExtensionsExt 

Source
pub trait ExtensionsExt: Sealed {
    // Required method
    fn uri_template_label(&self) -> Option<UriTemplateLabel>;
}
Expand description

Extensions for http::Extensions.

Required Methods§

Source

fn uri_template_label(&self) -> Option<UriTemplateLabel>

Returns the URI template label from extensions, if available.

This method checks for a template label in the following order:

  1. From an explicit UriTemplateLabel extension
  2. From a PathAndQuery label (if set via #[templated(label = "...")])
  3. From a PathAndQuery template string

Returns None if no template information is available.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ExtensionsExt for Extensions

Implementors§