Trait ntex::web::BodyEncoding

source ·
pub trait BodyEncoding {
    // Required methods
    fn get_encoding(&self) -> Option<ContentEncoding>;
    fn encoding(&mut self, encoding: ContentEncoding) -> &mut Self;
}
Expand description

Helper trait that allows to set specific encoding for response.

Required Methods§

source

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

Get content encoding

source

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

Set content encoding

Object Safety§

This trait is not object safe.

Implementors§