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, deflate
  • Accept: */*
  • User-Agent: <provided at Client construction>

The following headers are fully controlled by conjure_runtime, which will overwrite any existing value.

  • Connection
  • Content-Length
  • Content-Type
  • Host
  • Proxy-Authorization
  • X-B3-Flags
  • X-B3-ParentSpanId
  • X-B3-Sampled
  • X-B3-SpanId
  • X-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.

Sets the request body.

Makes the request.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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