Struct fire_http_representation::response::ResponseBuilder
source · [−]pub struct ResponseBuilder { /* private fields */ }
Expand description
A builder to create a Response
.
Implementations
Sets the status code.
Sets the content type.
pub fn header<K, V>(self, key: K, val: V) -> Self where
K: IntoHeaderName,
V: IntoHeaderValue,
pub fn header<K, V>(self, key: K, val: V) -> Self where
K: IntoHeaderName,
V: IntoHeaderValue,
Returns HeaderValues
mutably.
Sets the body dropping the previous one.