Struct aws_sdk_xray::types::builders::HttpBuilder
source · #[non_exhaustive]pub struct HttpBuilder { /* private fields */ }
Expand description
A builder for Http
.
Implementations§
source§impl HttpBuilder
impl HttpBuilder
sourcepub fn set_http_url(self, input: Option<String>) -> Self
pub fn set_http_url(self, input: Option<String>) -> Self
The request URL.
sourcepub fn get_http_url(&self) -> &Option<String>
pub fn get_http_url(&self) -> &Option<String>
The request URL.
sourcepub fn http_status(self, input: i32) -> Self
pub fn http_status(self, input: i32) -> Self
The response status.
sourcepub fn set_http_status(self, input: Option<i32>) -> Self
pub fn set_http_status(self, input: Option<i32>) -> Self
The response status.
sourcepub fn get_http_status(&self) -> &Option<i32>
pub fn get_http_status(&self) -> &Option<i32>
The response status.
sourcepub fn http_method(self, input: impl Into<String>) -> Self
pub fn http_method(self, input: impl Into<String>) -> Self
The request method.
sourcepub fn set_http_method(self, input: Option<String>) -> Self
pub fn set_http_method(self, input: Option<String>) -> Self
The request method.
sourcepub fn get_http_method(&self) -> &Option<String>
pub fn get_http_method(&self) -> &Option<String>
The request method.
sourcepub fn user_agent(self, input: impl Into<String>) -> Self
pub fn user_agent(self, input: impl Into<String>) -> Self
The request's user agent string.
sourcepub fn set_user_agent(self, input: Option<String>) -> Self
pub fn set_user_agent(self, input: Option<String>) -> Self
The request's user agent string.
sourcepub fn get_user_agent(&self) -> &Option<String>
pub fn get_user_agent(&self) -> &Option<String>
The request's user agent string.
sourcepub fn set_client_ip(self, input: Option<String>) -> Self
pub fn set_client_ip(self, input: Option<String>) -> Self
The IP address of the requestor.
sourcepub fn get_client_ip(&self) -> &Option<String>
pub fn get_client_ip(&self) -> &Option<String>
The IP address of the requestor.
Trait Implementations§
source§impl Clone for HttpBuilder
impl Clone for HttpBuilder
source§fn clone(&self) -> HttpBuilder
fn clone(&self) -> HttpBuilder
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 HttpBuilder
impl Debug for HttpBuilder
source§impl Default for HttpBuilder
impl Default for HttpBuilder
source§fn default() -> HttpBuilder
fn default() -> HttpBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for HttpBuilder
impl PartialEq for HttpBuilder
source§fn eq(&self, other: &HttpBuilder) -> bool
fn eq(&self, other: &HttpBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HttpBuilder
Auto Trait Implementations§
impl RefUnwindSafe for HttpBuilder
impl Send for HttpBuilder
impl Sync for HttpBuilder
impl Unpin for HttpBuilder
impl UnwindSafe for HttpBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.