Struct fastly_api::models::http_response_format::HttpResponseFormat
source · pub struct HttpResponseFormat {
pub code: Option<i32>,
pub reason: Option<String>,
pub headers: Option<HashMap<String, String>>,
pub body: Option<String>,
pub body_bin: Option<String>,
}
Expand description
HttpResponseFormat : Payload format for delivering to subscribers of whole HTTP responses (response
hold mode). One of body
or body-bin
must be specified.
Fields§
§code: Option<i32>
The HTTP status code.
reason: Option<String>
The HTTP status string. Defaults to a string appropriate for code
.
headers: Option<HashMap<String, String>>
A map of arbitrary HTTP response headers to include in the response.
body: Option<String>
The response body as a string.
body_bin: Option<String>
The response body as a base64-encoded binary blob.
Implementations§
source§impl HttpResponseFormat
impl HttpResponseFormat
sourcepub fn new() -> HttpResponseFormat
pub fn new() -> HttpResponseFormat
Payload format for delivering to subscribers of whole HTTP responses (response
hold mode). One of body
or body-bin
must be specified.
Trait Implementations§
source§impl Clone for HttpResponseFormat
impl Clone for HttpResponseFormat
source§fn clone(&self) -> HttpResponseFormat
fn clone(&self) -> HttpResponseFormat
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HttpResponseFormat
impl Debug for HttpResponseFormat
source§impl Default for HttpResponseFormat
impl Default for HttpResponseFormat
source§fn default() -> HttpResponseFormat
fn default() -> HttpResponseFormat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HttpResponseFormat
impl<'de> Deserialize<'de> for HttpResponseFormat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more