Expand description
Bounded HTTP client: connection reuse via a single Agent, capped concurrency.
Structs§
- Http
Client - HTTP client: one Agent (connection reuse), bounded concurrent requests.
Functions§
- get
- GET url and return body (uses global bounded client).
- get_
to_ file - GET url and write to file (uses global bounded client).
- get_
with_ accept - GET url with optional Accept header (e.g. application/vnd.npm.install-v1+json for abbreviated packument).
- post_
json - POST JSON body to url (uses global bounded client).