Expand description
Types and functions for building HTTP clients.
Re-exports§
pub use pager::ItemIterator;pub use pager::PageIterator;pub use pager::Pager;pub use poller::Poller;pub use crate::error::check_success;
Modules§
- headers
- HTTP headers.
- pager
- Types and methods for pageable responses.
- policies
- HTTP pipeline policies.
- poller
- Types and methods for long-running operations (LROs).
- request
- HTTP requests.
- response
- HTTP responses.
Structs§
- Async
RawResponse - A raw HTTP response with status, headers, and body.
- Async
Response - A typed HTTP response that completes asynchronously outside the
Pipeline. - Client
Method Options - Method options allow customization of client method calls.
- Client
Options - Client options allow customization of general client policies, retry options, and more.
- Context
- Pipeline execution context.
- Etag
- Represents an ETag for versioned resources.
- Exponential
Retry Options - Options for how an exponential retry strategy should behave.
- Fixed
Retry Options - Options for how a fixed retry strategy should behave.
- Instrumentation
Options - Policy options to enable distributed tracing.
- Json
Format - A
Formatthat deserializes response bodies using JSON. This is the default format used for deserialization. - Logging
Options - Controls what HTTP headers and query parameters are logged by default.
- NoFormat
- A
Formatindicating that the response has no structured format. This includes responses that return raw data and that don’t return a response body. - Pipeline
- Execution pipeline.
- Pipeline
Options - Options for constructing a
Pipeline - Pipeline
Send Options - Options for the
Pipeline::sendfunction. - Pipeline
Stream Options - Options for the
Pipeline::streamfunction. - RawResponse
- A raw HTTP response with status, headers, and body.
- Request
- A pipeline request.
- Request
Content - The body content of a service client request.
- Response
- A typed fully-buffered HTTP response.
- Retry
Options - Specify how retries should behave.
- Transport
- The HTTP transport.
- Url
- A parsed URL record.
- User
Agent Options - Policy options to telemeter the
User-Agentheader. - XmlFormat
xml - A
Formatthat deserializes response bodies using XML.
Enums§
- Body
- An HTTP Body.
- Method
- HTTP request methods.
- Status
Code - HTTP response status codes.
Traits§
- Append
ToUrl Query - Add a new query pair into the target
Url’s query string. - Deserialize
With - A trait used to describe a type that can be deserialized using the specified
Format. - Format
- A trait used to indicate the serialization format used for a response body.
- Http
Client - An HTTP client which can send requests.
- UrlExt
- Extension trait for
Urlto provide additional URL manipulation methods.
Functions§
- new_
http_ client - Create a new
HttpClient.