Skip to main content

Module awc_http_connector

Module awc_http_connector 

Source
Expand description

An [object_store] [osc::HttpConnector] built on [awc], letting the S3 store run without reqwest (and hence without ring).

StructsΒ§

AwcClient πŸ”’
The [osc::HttpService] used to implement AwcHttpConnector::connect.
AwcHttpConnector
An [object_store] [osc::HttpConnector]: a factory that builds one [awc]-backed [osc::HttpClient] per [osc::HttpConnector::connect] call. Create using AwcHttpConnector::new.
ConnectorOptions πŸ”’
The client options AwcHttpConnector::connect understands, parsed from [osc::ClientOptions].
Job πŸ”’
A request for the worker thread, with a channel for the response head.
RequestBody πŸ”’
Adapts object_store’s request body to an awc [awc::body::MessageBody].
ResponseBody πŸ”’
The response body object_store reads: it maps the SyncStream that relays awc’s body chunks off the worker thread into http_body data frames. A Truncated relay β€” the worker was torn down before the body finished β€” becomes a retryable error, so object_store never accepts a silently short body as complete.

EnumsΒ§

Error πŸ”’
Something that went wrong relaying a request through [awc].

Type AliasesΒ§

ApplyOption πŸ”’
How AwcHttpConnector::connect folds one honored client option into ConnectorOptions: given the options parsed so far, return them with this one set.