pub trait IntoHeaders {
// Required method
fn into_headers(self) -> Result<JsValue, Error>;
// Provided method
fn into_options(self) -> Result<Options, Error>
where Self: Sized { ... }
}
Expand description
Types that can be converted into headers.
Required Methods§
Sourcefn into_headers(self) -> Result<JsValue, Error>
fn into_headers(self) -> Result<JsValue, Error>
Converts the value into headers.
Provided Methods§
Implementations on Foreign Types§
Source§impl IntoHeaders for Headers
Available on crate feature headers
only.
impl IntoHeaders for Headers
Available on crate feature
headers
only.