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

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

Helper trait that allows to set specific encoding for response.

Required methods

fn get_encoding(&self) -> Option<ContentEncoding>

Get content encoding

fn encoding(&mut self, encoding: ContentEncoding) -> &mut Self

Set content encoding

Loading content...

Implementors

impl BodyEncoding for ResponseBuilder[src]

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

Loading content...