Expand description
Shared HTTP client for all GoaT API requests. A shared HTTP client for all GoaT API requests.
GoatClient wraps reqwest::Client so the underlying connection pool
is created once and reused across all concurrent requests instead of being
rebuilt on every call. Clone it freely — the inner client is
reference-counted.
Structs§
- Goat
Client - Shared HTTP client for the GoaT API.
Constants§
- MAX_
CONCURRENT_ REQUESTS - The most requests to have in flight at once, so that large batches
(e.g. a
-ffile of 500 taxa) don’t flood the GoaT API.
Functions§
- concurrency
- How many of
nrequests to run at once: at mostMAX_CONCURRENT_REQUESTS, and at least 1 (buffered(0)never completes).