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
impl StructuralPartialEq for HttpBuilder
Auto Trait Implementations§
impl Freeze for HttpBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.