netty

September 25, 2026 ยท View on GitHub

CI License Crates.io

Async network clients, down to the wire.

Features

  • HTTP/1 and HTTP/2 implementations.
  • HTTP Upgrade and CONNECT tunnels, including HTTP/2 Extended CONNECT.
  • HTTP/3 over a QUIC connection established by the caller.
  • HTTP/3 Extended CONNECT and HTTP Datagrams.
  • Streaming bodies and trailers with backpressure.
  • Pluggable executor, timer and transport interfaces implemented by the caller.
  • Carries forward Hyper's client-side implementation.

Usage

Add the protocol crate to Cargo.toml:

[dependencies]
netty = "0.2"

The client APIs are organized by protocol:

use netty::conn::{http1, http2};

fn main() {
    // ...
}

Documentation

License

Licensed under either of Apache License, Version 2.0 (LICENSE or http://www.apache.org/licenses/LICENSE-2.0).

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.

FAQ

Is this the Java networking framework?

No.