Struct fire_http_representation::response::ResponseBuilder [−][src]
pub struct ResponseBuilder { /* fields omitted */ }
Expand description
A builder to create a Response
.
Implementations
impl ResponseBuilder
[src]
impl ResponseBuilder
[src]pub fn status_code(self, status_code: StatusCode) -> Self
[src]
pub fn status_code(self, status_code: StatusCode) -> Self
[src]Sets the status code.
pub fn content_type<T>(self, content_type: T) -> Self where
T: Into<ContentType>,
[src]
pub fn content_type<T>(self, content_type: T) -> Self where
T: Into<ContentType>,
[src]Sets the content type.
pub fn header<K, V>(self, key: K, val: V) -> Self where
K: IntoHeaderName,
V: IntoHeaderValue,
[src]
pub fn header<K, V>(self, key: K, val: V) -> Self where
K: IntoHeaderName,
V: IntoHeaderValue,
[src]pub fn values_mut(&mut self) -> &mut HeaderValues
[src]
pub fn values_mut(&mut self) -> &mut HeaderValues
[src]Returns HeaderValues
mutably.