Struct aws_sdk_iot::types::builders::HttpContextBuilder
source · #[non_exhaustive]pub struct HttpContextBuilder { /* private fields */ }
Expand description
A builder for HttpContext
.
Implementations§
source§impl HttpContextBuilder
impl HttpContextBuilder
sourcepub fn headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn headers(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to headers
.
To override the contents of this collection use set_headers
.
The header keys and values in an HTTP authorization request.
sourcepub fn set_headers(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_headers(self, input: Option<HashMap<String, String>>) -> Self
The header keys and values in an HTTP authorization request.
sourcepub fn query_string(self, input: impl Into<String>) -> Self
pub fn query_string(self, input: impl Into<String>) -> Self
The query string keys and values in an HTTP authorization request.
sourcepub fn set_query_string(self, input: Option<String>) -> Self
pub fn set_query_string(self, input: Option<String>) -> Self
The query string keys and values in an HTTP authorization request.
sourcepub fn build(self) -> HttpContext
pub fn build(self) -> HttpContext
Consumes the builder and constructs a HttpContext
.
Trait Implementations§
source§impl Clone for HttpContextBuilder
impl Clone for HttpContextBuilder
source§fn clone(&self) -> HttpContextBuilder
fn clone(&self) -> HttpContextBuilder
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 HttpContextBuilder
impl Debug for HttpContextBuilder
source§impl Default for HttpContextBuilder
impl Default for HttpContextBuilder
source§fn default() -> HttpContextBuilder
fn default() -> HttpContextBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<HttpContextBuilder> for HttpContextBuilder
impl PartialEq<HttpContextBuilder> for HttpContextBuilder
source§fn eq(&self, other: &HttpContextBuilder) -> bool
fn eq(&self, other: &HttpContextBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.