Skip to main content

Module http

Module http 

Source
Expand description

HTTP Client Support

Provides HTTP/1.1 and HTTP/2 client functionality with streaming support.

§Features

  • Full HTTP/1.1 and HTTP/2 support
  • Streaming request and response bodies
  • Connection pooling
  • Automatic compression/decompression (gzip, brotli)
  • Multipart form uploads
  • Cookie handling
  • Retry with backoff
  • Timeout configuration

Structs§

Client
HTTP client for making requests
ClientConfig
HTTP client configuration
Request
HTTP request
RequestBuilder
Builder for HTTP requests
Response
HTTP response

Enums§

Body
HTTP request body

Functions§

get
Convenience function to make a GET request
post_json
Convenience function to make a POST request with JSON body