pub struct StdHttpTransport;Expand description
Shared bounded HTTP transport for unauthenticated deployment-local calls.
Trait Implementations§
Source§impl Clone for StdHttpTransport
impl Clone for StdHttpTransport
Source§fn clone(&self) -> StdHttpTransport
fn clone(&self) -> StdHttpTransport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StdHttpTransport
Source§impl Debug for StdHttpTransport
impl Debug for StdHttpTransport
Source§impl HttpTransport for StdHttpTransport
impl HttpTransport for StdHttpTransport
Source§fn send_json(
&self,
base_url: &str,
request: HttpControlPlaneRequest,
) -> ControlPlaneResult<HttpControlPlaneResponse>
fn send_json( &self, base_url: &str, request: HttpControlPlaneRequest, ) -> ControlPlaneResult<HttpControlPlaneResponse>
Sends one JSON request to the configured base URL.
Source§fn send_json_traced(
&self,
base_url: &str,
request: HttpControlPlaneRequest,
trace: Option<&TraceContext>,
) -> ControlPlaneResult<HttpControlPlaneResponse>
fn send_json_traced( &self, base_url: &str, request: HttpControlPlaneRequest, trace: Option<&TraceContext>, ) -> ControlPlaneResult<HttpControlPlaneResponse>
Sends one JSON request and propagates optional trace headers.
Source§fn send_json_traced_cancellable(
&self,
base_url: &str,
request: HttpControlPlaneRequest,
trace: Option<&TraceContext>,
cancellation: &CancellationToken,
) -> ControlPlaneResult<HttpControlPlaneResponse>
fn send_json_traced_cancellable( &self, base_url: &str, request: HttpControlPlaneRequest, trace: Option<&TraceContext>, cancellation: &CancellationToken, ) -> ControlPlaneResult<HttpControlPlaneResponse>
Sends one traced request with cooperative cancellation.
Auto Trait Implementations§
impl Freeze for StdHttpTransport
impl RefUnwindSafe for StdHttpTransport
impl Send for StdHttpTransport
impl Sync for StdHttpTransport
impl Unpin for StdHttpTransport
impl UnsafeUnpin for StdHttpTransport
impl UnwindSafe for StdHttpTransport
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