pub type Response<T = Body> = Response<T>;
Expand description
Type alias for http::Response
whose body type defaults to Body
, the most common body
type used with rama.
Aliased Type§
struct Response<T = Body> { /* private fields */ }
Trait Implementations§
Source§impl<Body> HeaderValueGetter for Response<Body>
impl<Body> HeaderValueGetter for Response<Body>
Source§fn header_str<K>(&self, key: K) -> Result<&str, HeaderValueErr>where
K: AsHeaderName + Copy,
fn header_str<K>(&self, key: K) -> Result<&str, HeaderValueErr>where
K: AsHeaderName + Copy,
Get a header value as a string.
Source§fn header_bytes<K>(&self, key: K) -> Result<&[u8], HeaderValueErr>where
K: AsHeaderName + Copy,
fn header_bytes<K>(&self, key: K) -> Result<&[u8], HeaderValueErr>where
K: AsHeaderName + Copy,
Get a header value as a byte slice.