Skip to main content

HeaderFields

Trait HeaderFields 

Source
pub trait HeaderFields: Sync {
    // Required method
    fn fields(&self) -> &HashMap<CheetahString, CheetahString>;
}
Expand description

Header fields of a SecurityRequestView, produced when a policy first reads them.

A transport can implement this over a request whose fields are still in their encoded form, so a policy that never calls SecurityRequestView::fields does not pay for building them.

Required Methods§

Source

fn fields(&self) -> &HashMap<CheetahString, CheetahString>

Returns the request’s header fields.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl HeaderFields for HashMap<CheetahString, CheetahString>

Implementors§