Struct azure_core::request_options::AcceptEncoding
source · [−]pub struct AcceptEncoding(_);
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
sourceimpl AcceptEncoding
impl AcceptEncoding
Trait Implementations
sourceimpl Clone for AcceptEncoding
impl Clone for AcceptEncoding
sourcefn clone(&self) -> AcceptEncoding
fn clone(&self) -> AcceptEncoding
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AcceptEncoding
impl Debug for AcceptEncoding
sourceimpl Header for AcceptEncoding
impl Header for AcceptEncoding
fn name(&self) -> HeaderName
fn value(&self) -> HeaderValue
Auto Trait Implementations
impl RefUnwindSafe for AcceptEncoding
impl Send for AcceptEncoding
impl Sync for AcceptEncoding
impl Unpin for AcceptEncoding
impl UnwindSafe for AcceptEncoding
Blanket Implementations
sourceimpl<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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more