[][src]Trait actix_web::dev::BodyEncoding

pub trait BodyEncoding {
    pub fn get_encoding(&self) -> Option<ContentEncoding>;
pub fn encoding(&mut self, encoding: ContentEncoding) -> &mut Self; }

Helper trait that allows to set specific encoding for response.

Required methods

pub fn get_encoding(&self) -> Option<ContentEncoding>[src]

Get content encoding

pub fn encoding(&mut self, encoding: ContentEncoding) -> &mut Self[src]

Set content encoding

Loading content...

Implementors

impl BodyEncoding for ResponseBuilder[src]

impl<B> BodyEncoding for Response<B>[src]

Loading content...