Trait aws_smithy_http::http::HttpHeaders
source · pub trait HttpHeaders {
// Required methods
fn http_headers(&self) -> &HeaderMap<HeaderValue>;
fn http_headers_mut(&mut self) -> &mut HeaderMap<HeaderValue>;
}
Expand description
Trait for accessing HTTP headers.
Useful for generic impls so that they can access headers via trait bounds.
Required Methods§
sourcefn http_headers(&self) -> &HeaderMap<HeaderValue>
fn http_headers(&self) -> &HeaderMap<HeaderValue>
Returns a reference to the associated header map.
sourcefn http_headers_mut(&mut self) -> &mut HeaderMap<HeaderValue>
fn http_headers_mut(&mut self) -> &mut HeaderMap<HeaderValue>
Returns a mutable reference to the associated header map.