[go: up one dir, main page]

Module http

Module http 

Source
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§

AsyncRawResponse
A raw HTTP response with status, headers, and body.
AsyncResponse
A typed HTTP response that completes asynchronously outside the Pipeline.
ClientMethodOptions
Method options allow customization of client method calls.
ClientOptions
Client options allow customization of general client policies, retry options, and more.
Context
Pipeline execution context.
Etag
Represents an ETag for versioned resources.
ExponentialRetryOptions
Options for how an exponential retry strategy should behave.
FixedRetryOptions
Options for how a fixed retry strategy should behave.
InstrumentationOptions
Policy options to enable distributed tracing.
JsonFormat
A Format that deserializes response bodies using JSON. This is the default format used for deserialization.
LoggingOptions
Controls what HTTP headers and query parameters are logged by default.
NoFormat
A Format indicating 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.
PipelineOptions
Options for constructing a Pipeline
PipelineSendOptions
Options for the Pipeline::send function.
PipelineStreamOptions
Options for the Pipeline::stream function.
RawResponse
A raw HTTP response with status, headers, and body.
Request
A pipeline request.
RequestContent
The body content of a service client request.
Response
A typed fully-buffered HTTP response.
RetryOptions
Specify how retries should behave.
Transport
The HTTP transport.
Url
A parsed URL record.
UserAgentOptions
Policy options to telemeter the User-Agent header.
XmlFormatxml
A Format that deserializes response bodies using XML.

Enums§

Body
An HTTP Body.
Method
HTTP request methods.
StatusCode
HTTP response status codes.

Traits§

AppendToUrlQuery
Add a new query pair into the target Url’s query string.
DeserializeWith
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.
HttpClient
An HTTP client which can send requests.
UrlExt
Extension trait for Url to provide additional URL manipulation methods.

Functions§

new_http_client
Create a new HttpClient.