[go: up one dir, main page]

Module http_client

Module http_client 

Source
Expand description

HTTP client abstraction layer

Provides a unified HTTP request interface with support for:

  • Automatic retry mechanism with configurable strategies
  • Timeout control per request
  • Gzip compression/decompression
  • Request and response logging with structured tracing
  • Custom headers
  • Proxy configuration
  • Rate limiting integration

§Observability

This module uses the tracing crate for structured logging. Key events:

  • HTTP request initiation with URL and method
  • Retry attempts with delay and error cause
  • HTTP response status and body preview
  • Error details with structured fields

Structs§

HttpClient
HTTP client with retry and rate limiting support
HttpConfig
HTTP request configuration