[−][src]Trait hreq::server::ResponseBuilderExt
Extends http::response::Builder
with ergonomic extras for hreq.
These extensions are part of the primary goal of hreq to provide a "User first API".
Extends http::response::Builder
with ergonomic extras for hreq.
These extensions are part of the primary goal of hreq to provide a "User first API".
fn timeout(self, duration: Duration) -> Self
fn timeout_millis(self, millis: u64) -> Self
fn charset_encode(self, enable: bool) -> Self
fn charset_encode_source(self, encoding: &str) -> Self
fn content_encode(self, enabled: bool) -> Self
fn with_body<B: Into<Body>>(self, body: B) -> Result<Response<Body>>
fn with_json<B: Serialize + ?Sized>(self, body: &B) -> Result<Response<Body>>
impl ResponseBuilderExt for Builder
[src]fn timeout(self, duration: Duration) -> Self
[src]fn timeout_millis(self, millis: u64) -> Self
[src]fn charset_encode(self, enable: bool) -> Self
[src]fn charset_encode_source(self, encoding: &str) -> Self
[src]fn content_encode(self, enable: bool) -> Self
[src]fn with_body<B: Into<Body>>(self, body: B) -> Result<Response<Body>>
[src]fn with_json<B: Serialize + ?Sized>(self, body: &B) -> Result<Response<Body>>
[src]