Struct gateway::response::Builder
[−]
[src]
pub struct Builder { /* fields omitted */ }
An HTTP response builder
You will typically should create one with Response::builder()
Methods
impl Builder
[src]
fn new() -> Self
[src]
fn status_code(&mut self, c: u16) -> &mut Self
[src]
fn body<B>(&mut self, b: B) -> &mut Self where
B: Into<String>,
[src]
B: Into<String>,
Set response body. If body is base64 encoded
set base64_encoded(true)
.
fn header<K, V>(&mut self, k: K, v: V) -> &mut Self where
K: Into<String>,
V: Into<String>,
[src]
K: Into<String>,
V: Into<String>,
fn base64_encoded(&mut self, is: bool) -> &mut Self
[src]
Sets a hint to API gateway that response body is base64 encoded