Struct conjure_runtime::RequestBuilder [−][src]
pub struct RequestBuilder<'a, T = DefaultRawClient> { /* fields omitted */ }Expand description
A builder for an asynchronous HTTP request.
Implementations
Returns a mutable reference to the headers of this request.
The following headers are set by default, but can be overridden:
Accept-Encoding: gzip, deflateAccept: */*User-Agent: <provided at Client construction>
The following headers are fully controlled by conjure_runtime, which will overwrite any existing value.
ConnectionContent-LengthContent-TypeHostProxy-AuthorizationX-B3-FlagsX-B3-ParentSpanIdX-B3-SampledX-B3-SpanIdX-B3-TraceId
Sets the Authorization request header to a bearer token.
This is a simple convenience wrapper.
Adds a parameter.
Parameters which match names in the path pattern will be treated as path parameters, and other parameters will be treated as query parameters. Only one instance of path parameters may be provided, but multiple instances of query parameters may be provided.
Sets the idempotency of the request.
Idempotent requests can be retried if an IO error is encountered.
The default value is controlled by the Idempotency enum.
Auto Trait Implementations
impl<'a, T = DefaultRawClient> !RefUnwindSafe for RequestBuilder<'a, T>
impl<'a, T> Send for RequestBuilder<'a, T> where
T: Send + Sync,
impl<'a, T> Sync for RequestBuilder<'a, T> where
T: Send + Sync,
impl<'a, T> Unpin for RequestBuilder<'a, T>
impl<'a, T = DefaultRawClient> !UnwindSafe for RequestBuilder<'a, T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more