Skip to main content

Module h1

Module h1 

Source
Expand description

HTTP/1.1 client.

  • smol: hyper’s client::conn::http1. No connection pooling: each request opens a fresh TCP connection.
  • tokio: hyper_util::client::legacy::Client, which handles DNS and reuses connections. hyper’s high-level Client needs a tokio runtime, so smol cannot use it.

Functions§

build_request 🔒
POST request with the encoded message as body.
send 🔒