pub struct AcceptEncoding(/* private fields */);
Expand description
Advertises which content encoding the client is able to understand.
The Accept-Encoding request HTTP header advertises which content encoding, usually a compression algorithm, the client is able to understand. Using content negotiation, the server selects one of the proposals, uses it and informs the client of its choice with the Content-Encoding response header.
Even if both the client and the server supports the same compression algorithms, the server may choose not to compress the body of a response, if the identity value is also acceptable.
Implementations§
Trait Implementations§
source§impl Clone for AcceptEncoding
impl Clone for AcceptEncoding
source§fn clone(&self) -> AcceptEncoding
fn clone(&self) -> AcceptEncoding
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 moresource§impl Debug for AcceptEncoding
impl Debug for AcceptEncoding
source§impl<S> From<S> for AcceptEncoding
impl<S> From<S> for AcceptEncoding
source§impl Header for AcceptEncoding
impl Header for AcceptEncoding
fn name(&self) -> HeaderName
fn value(&self) -> HeaderValue
Auto Trait Implementations§
impl Freeze for AcceptEncoding
impl RefUnwindSafe for AcceptEncoding
impl Send for AcceptEncoding
impl Sync for AcceptEncoding
impl Unpin for AcceptEncoding
impl UnwindSafe for AcceptEncoding
Blanket Implementations§
source§impl<T> AsHeaders for Twhere
T: Header,
impl<T> AsHeaders for Twhere
T: Header,
type Iter = IntoIter<(HeaderName, HeaderValue)>
fn as_headers(&self) -> <T as AsHeaders>::Iter
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)