Skip to main content

Module http

Module http 

Source
Expand description

HTTP client with retry, caching, and rate limiting.

All requests are queued and driven by tick(). Results arrive as HttpEvent values polled from drain_events().

§Features

  • GET, POST, PUT, DELETE, PATCH
  • Per-request timeout
  • Retry with exponential backoff and jitter
  • In-memory response cache (ETag / Last-Modified)
  • Rate limiter (token bucket per base URL)
  • Connection pooling (keep-alive slot map)
  • JSON body helpers
  • Binary response support

Structs§

HttpClient
Non-blocking HTTP client driven by tick().
HttpRequest
An HTTP request to be issued by the client.
HttpResponse
RateLimiter
Token-bucket rate limiter per base URL.
RequestId

Enums§

CachePolicy
HttpError
HttpEvent
Method