pub trait TryIntoRamaHttp: Sealed {
type Output;
type Error;
// Required method
fn try_into_rama_http(self) -> Result<Self::Output, Self::Error>;
}Expand description
Fallibly convert a hyperium http-crate value into its rama-http-types
equivalent. Sealed; the implemented set is fixed by this crate.
Required Associated Types§
Required Methods§
Sourcefn try_into_rama_http(self) -> Result<Self::Output, Self::Error>
fn try_into_rama_http(self) -> Result<Self::Output, Self::Error>
Convert self into its rama-http-types equivalent.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl TryIntoRamaHttp for &HeaderMap
impl TryIntoRamaHttp for &HeaderMap
Source§fn try_into_rama_http(self) -> Result<HeaderMap, Error>
fn try_into_rama_http(self) -> Result<HeaderMap, Error>
Borrowing variant, for boundaries that only hand out a &http::HeaderMap
(e.g. a multer multipart field). Iterating by reference already repeats
the name per value, so no multi-value bookkeeping is needed.