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§
Sourcefn fields(&self) -> &HashMap<CheetahString, CheetahString>
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".