Skip to main content

Crate nestrs_http

Crate nestrs_http 

Source
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-exports reqwest at the crate root.

Structs§

HttpModule
Registers a singleton HttpService (and re-exports it). Mirror of the pre-extraction nestrs::HttpModule shape.
HttpService
Shared reqwest::Client for outbound HTTP (inject where needed).
HttpServiceOptions
Tunables for the shared HttpService client.

Constants§

DEFAULT_CONNECT_TIMEOUT
Default TCP/TLS connect timeout for HttpService requests.
DEFAULT_REQUEST_TIMEOUT
Default overall timeout for every request issued through HttpService.