pub struct hyper_headers { /* private fields */ }
Available on crate feature
ffi
and hyper_unstable_ffi
only.Expand description
An HTTP header map.
These can be part of a request or response.
Obtain a pointer to read or modify these from hyper_request_headers
or hyper_response_headers
.
Methods:
- hyper_headers_add: Adds the provided value to the list of the provided name.
- hyper_headers_foreach: Iterates the headers passing each name and value pair to the callback.
- hyper_headers_set: Sets the header with the provided name to the provided value.
Trait Implementations§
Source§impl Clone for hyper_headers
impl Clone for hyper_headers
Source§fn clone(&self) -> hyper_headers
fn clone(&self) -> hyper_headers
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for hyper_headers
impl RefUnwindSafe for hyper_headers
impl Send for hyper_headers
impl Sync for hyper_headers
impl Unpin for hyper_headers
impl UnwindSafe for hyper_headers
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more