Trait ntex::web::BodyEncoding [−][src]
pub trait BodyEncoding { 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
fn get_encoding(&self) -> Option<ContentEncoding>
[src]
fn get_encoding(&self) -> Option<ContentEncoding>
[src]Get content encoding
fn encoding(&mut self, encoding: ContentEncoding) -> &mut Self
[src]
fn encoding(&mut self, encoding: ContentEncoding) -> &mut Self
[src]Set content encoding
Implementors
impl BodyEncoding for HttpResponseBuilder
[src]
impl BodyEncoding for HttpResponseBuilder
[src]fn get_encoding(&self) -> Option<ContentEncoding>
[src]
fn encoding(&mut self, encoding: ContentEncoding) -> &mut Self
[src]
impl<B> BodyEncoding for HttpResponse<B>
[src]
impl<B> BodyEncoding for HttpResponse<B>
[src]