Expand description
Outbound HTTP client for the nestrs
framework — the Rust equivalent of NestJS’s
@nestjs/axios.
See the README
for the high-level API. The umbrella’s pre-extraction nestrs::HttpService
(in nestrs/src/http_client.rs) becomes a 1-line shim over this crate;
the real implementation lives here.
§Feature flags
default = []— base crate.reqwest— re-exportsreqwestat the crate root.
Structs§
- Http
Module - Registers a singleton
HttpService(and re-exports it). Mirror of the pre-extractionnestrs::HttpModuleshape. - Http
Service - Shared
reqwest::Clientfor outbound HTTP (inject where needed). - Http
Service Options - Tunables for the shared
HttpServiceclient.
Constants§
- DEFAULT_
CONNECT_ TIMEOUT - Default TCP/TLS connect timeout for
HttpServicerequests. - DEFAULT_
REQUEST_ TIMEOUT - Default overall timeout for every request issued through
HttpService.