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§

source

fn http_headers(&self) -> &HeaderMap<HeaderValue>

Returns a reference to the associated header map.

source

fn http_headers_mut(&mut self) -> &mut HeaderMap<HeaderValue>

Returns a mutable reference to the associated header map.

Implementations on Foreign Types§

source§

impl<B> HttpHeaders for Response<B>

Implementors§

source§

impl HttpHeaders for aws_smithy_http::operation::Response