Structs§
- Bytes
Body - A body already in memory, handed out in
CHUNK_LEN-sized pieces. - Http
Control - Cancellation and progress shared with an in-flight request.
- Http
Progress - How much of a transfer has arrived.
- Http
Request - One request.
- Http
Response - What a server answered, with its body still to be read.
- Stub
Http Client - An HTTP client that answers from a function rather than a network.
Enums§
- Http
Error - Http
Method - The verbs a request can use.
Traits§
- Cancel
Transfer - A transfer that stops at once when its
HttpControlis cancelled, registered withHttpControl::on_cancelby the backend running it. - Http
Body - A response body, read a chunk at a time.
- Http
Client - A platform’s HTTP.
- Platform
Downloader - A platform’s own transfer for
HttpClient::download_to, one that goes on while the application is suspended or closed.
Functions§
- default_
http_ client - The platform’s HTTP client.
- downloaded_
length - How much of a download into
targetis on the device: the file’s length, or more where the platform keeps a paused transfer’s bytes apart from the file, as iOS does. An application shows a paused download’s progress with it. - http_
body_ ref - Wraps
bodyin anHttpBodyRef. - local_
http_ client - map_
ordered_ concurrent - set_
platform_ downloader - Installs the platform’s downloader;
default_http_clientthen runsdownload_tothrough it. iOS installs one on a backgroundURLSession.
Type Aliases§
- Http
Body Ref - Shared handle to a response body.
- Http
Client Ref - Http
Future - Progress
Handler - What a progress report is handed to.
- Stub
Answer - What a
StubHttpClientanswers a request with.