Hyper in the landscape

Learn what Hyper is, how it fits into the Rust HTTP ecosystem, why Axum is built on top of it, and what Hyper means for Axum developers.

Every Rust web framework needs to speak HTTP. HTTP is the language browsers, mobile apps, and other servers use to talk to your backend. But understanding HTTP deeply enough to build a fast, correct server is a huge amount of work. You need to parse incoming requests, manage connections, handle streaming bodies, respect keep-alive rules, and more. This is where Hyper comes in.

Hyper is a low-level HTTP library for Rust. Think of it as the engine inside a car. When you drive a car, you don't think about pistons and fuel injection. You use the steering wheel and pedals. Axum is the steering wheel and pedals. Hyper is the engine. This page explains Hyper's role in the Rust web framework landscape and, more importantly, what that role means for you as an Axum developer.

What an HTTP library actually does

Before we talk about Hyper specifically, let's pin down what an "HTTP library" is in the first place. When you type https://example.com/users into a browser, the browser opens a network connection to a server. Over that connection, it sends a block of text that looks roughly like this:

GET /users HTTP/1.1
Host: example.com
Accept: application/json
User-Agent: Mozilla/5.0

The server must read that text, understand that the client wants the /users resource using the GET verb, and then decide what to send back. The server's response is also a block of text:

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 25
{"users":["alice","bob"]}

An HTTP library handles the mechanics of reading and writing these messages correctly. It deals with the question "where does the header section end and the body begin?" It deals with chunked transfer encoding, where the server sends a response in pieces without knowing the total size up front. It deals with connection reuse, where a single network socket serves many requests back to back. None of this is glamorous, but all of it is necessary.

If you tried to write this by hand, you would spend weeks getting edge cases right. Hyper does it for you, and it does it very well.

Hyper as the shared foundation

Hyper is not the only HTTP library in the Rust ecosystem. There are other options like ureq (a simple blocking client) and reqwest (a popular high-level client built on Hyper). But on the server side, Hyper has become the de facto standard for anything built on Tokio, which is Rust's dominant async runtime.

Several major Rust web frameworks are built directly on top of Hyper:

  • Axum - uses Hyper for all HTTP parsing and connection handling
  • Warp - also sits on Hyper
  • Tonic - a gRPC framework that uses Hyper for its HTTP/2 transport
  • Salvo - another framework built on Hyper

This creates a fascinating situation. When multiple frameworks share the same HTTP engine, improvements to that engine benefit everyone. If a performance fix lands in Hyper, Axum gets faster without any changes to Axum itself. The same goes for security fixes.

One engine, many cars:

A useful mental model: Hyper is like a car engine manufacturer. Axum, Warp, and Tonic are all car brands that use that same engine. Each brand has a different dashboard, different seats, different styling - but the engine underneath is the same. When the engine gets better, all the cars get better.

A minimal Hyper server

To understand what Hyper provides and what it deliberately does not provide, let's look at the smallest possible Hyper server. You won't need to write this code in an Axum project - Axum handles it for you - but seeing it makes the relationship crystal clear.

Here is a minimal Hyper server that responds to every request with the same text:

use std::convert::Infallible;
use hyper::{body::Incoming, service::service_fn, Request, Response, StatusCode};
async fn handle_request(req: Request<Incoming>) -> Result<Response<String>, Infallible> {
    // Print the method and path to the console
    println!("Received {} {}", req.method(), req.uri());
    // Build a simple response
    let response = Response::builder()
        .status(StatusCode::OK)
        .header("Content-Type", "text/plain")
        .body("Hello from Hyper".to_string())
        .unwrap();
    Ok(response)
}
#[tokio::main]
async fn main() {
    // Bind to a local address
    let listener = tokio::net::TcpListener::bind("127.0.0.1:3000").await.unwrap();
    loop {
        // Accept a single incoming connection
        let (stream, _addr) = listener.accept().await.unwrap();
        // Spawn a task to handle this connection
        tokio::spawn(async move {
            // Create the HTTP service from our handler function
            let service = service_fn(handle_request);
            // Let Hyper handle this connection using our service
            if let Err(e) = hyper::server::conn::http1::Builder::new()
                .serve_connection(stream, service)
                .await
            {
                eprintln!("Connection error: {e}");
            }
        });
    }
}

This example needs the hyper crate plus a few dependencies. Here's the complete Cargo.toml if you want to try it yourself:

[package]
name = "hyper-demo"
version = "0.1.0"
edition = "2021"
[dependencies]
tokio = { version = "1", features = ["full"] }
hyper = { version = "1", features = ["full"] }

What should you notice about this code? First, there is no routing here. Every request - whether it's GET /users or POST /api/login or DELETE /whatever - goes to the same handle_request function. The function receives the request and returns a response. That's it.

Second, there is no extraction logic. To read a JSON body, you'd need to manually read the body stream, accumulate the bytes, and parse them with Serde. To read a path parameter like /users/42, you'd need to manually split the URI string and parse the number yourself.

Third, there is no built-in middleware system. Want to add logging? Write it inside handle_request. Want compression? You'd wire that up manually using the Tower ecosystem.

This is the key insight about Hyper: it provides the full HTTP protocol, but nothing more. It gives you the raw materials. Axum gives you the ergonomic shape - routing, extractors, responses, middleware - on top of those raw materials.

Don't build production servers on raw Hyper:

While it's educational to build a raw Hyper server, doing so for a real application means reimplementing a significant chunk of what Axum already provides. The "Hello, World" above is fine for learning. For anything beyond a toy, you almost certainly want Axum (or another framework) on top.

Where Hyper ends and Axum begins

Now that you've seen a raw Hyper server, let's see the same "Hello" server written with Axum:

use axum::{routing::get, Router};
#[tokio::main]
async fn main() {
    let app = Router::new()
        .route("/", get(|| async { "Hello from Axum" }))
        .route("/users", get(|| async { "List of users" }));
    let listener = tokio::net::TcpListener::bind("127.0.0.1:3000").await.unwrap();
    axum::serve(listener, app).await.unwrap();
}

This is dramatically shorter, but more importantly, it adds three things Hyper does not give you:

  1. Routing - the Router maps different paths to different handlers.
  2. Handlers - ordinary Rust async functions that return anything convertible to a response.
  3. The axum::serve wrapper - which takes your Router and plugs it into Hyper's connection machinery automatically.

Under the hood, axum::serve is doing essentially what the raw Hyper example did: it accepts connections from the TcpListener, wraps your application in a Service, and hands everything to Hyper. The difference is that Axum's Router is a far richer Service than the simple service_fn from the raw example.

You're already using Hyper:

Every Axum application you write is a Hyper application. When you call axum::serve(listener, app), Axum converts your Router into a tower::Service and passes it to Hyper. There's no separate "Axum protocol" - it's HTTP from Hyper all the way down.

The axum::serve function in detail

axum::serve is the bridge between Axum and Hyper. Its job is deceptively simple: take a listener and an application, then run forever, accepting connections and processing requests. But the mechanics are worth understanding because several beginner questions trace back to this function.

Here is axum::serve with the pieces labeled:

use axum::{routing::get, Router};
#[tokio::main]
async fn main() {
    let app = Router::new().route("/", get(|| async { "Hello" }));
    let listener = tokio::net::TcpListener::bind("127.0.0.1:3000").await.unwrap();
    // axum::serve takes the listener and the app
    // It internally calls Hyper's server builder
    axum::serve(listener, app).await.unwrap();
}

Three pieces matter here:

  • TcpListener::bind - this comes from Tokio, not Hyper or Axum. It opens the network socket on the given address and port. Nothing HTTP-specific happens yet.
  • The app - this is your Router. It implements tower::Service<Request<Body>>, which is exactly what Hyper expects from a request handler.
  • axum::serve - this loops over incoming connections, and for each one, calls Hyper's HTTP/1 or HTTP/2 server logic with your app as the request service.

You don't see Hyper anywhere in the code, but it's there in every request. The string "Hello" your handler returns gets converted into an axum::body::Body - Axum's own body type, not a wrapper around Hyper's. Axum converts between its Body and Hyper's hyper::body::Incoming internally when a body crosses the boundary between the two. The response headers are assembled by Hyper's response writer. The connection keep-alive logic is Hyper's.

Why axum::serve exists:

The function exists to save you from writing the loop { tokio::spawn(...) } boilerplate from the raw Hyper example. It also handles HTTP/1 and HTTP/2 automatically, configures sane defaults, and integrates cleanly with graceful shutdown.

Hyper's version timeline and what it means for Axum

Hyper has gone through three major versions, and understanding this helps explain some confusing Axum documentation and dependency errors you might encounter.

Hyper 0.x was the original era. It had a very different API and was used by early versions of Axum (0.x). This era ended years ago and you're unlikely to encounter it today unless you're working on an old codebase.

Hyper 1.0 was released in late 2023. This was a landmark moment for the Rust ecosystem because it was the first stable 1.0 release of the library that underpins most async HTTP work in Rust. Axum 0.7 was the first Axum version to use Hyper 1.0, and Axum 0.8 continues on the Hyper 1.x line - the current release is hyper 1.12.0 (6 October 2026). When you see "Hyper 1.0" in older material, read it as "the 1.x line", not as the specific version 1.0.0.

The transition from Hyper 0.14 (the long-lived pre-1.0 release) to Hyper 1.0 was significant because the API changed in important ways. The body types were restructured, the server API was unified around the hyper::server::conn module, and the hyper::Server type was removed entirely.

Version mismatch is a real error source:

If you copy code from a tutorial written before 2024, you may see hyper::Server::bind or hyper::body::Body with no type parameter. Those APIs don't exist in Hyper 1.0. Axum 0.7 and later use Hyper 1.0, so old Hyper examples won't work directly. Always check the date and version of any Rust web tutorial you find.

What Hyper provides that Axum delegates

When you use Axum, you inherit a great deal of functionality from Hyper without ever calling Hyper directly. Here are the areas where Hyper does the heavy lifting:

HTTP parsing. Every incoming request must be split into method, URI, headers, and body. Hyper's parser is battle-tested, secure, and fast. Axum never touches the raw bytes.

Connection management. HTTP/1.1 allows a single TCP connection to serve many requests (keep-alive). Hyper manages that lifecycle: it knows when a request is complete, when a connection should stay open, and when it should be closed.

HTTP/2 support. HTTP/2 is a fundamentally different protocol from HTTP/1.1. It multiplexes multiple requests over one connection, uses binary framing, and has its own flow control. Hyper implements all of this. When you enable HTTP/2 in Axum, you're enabling Hyper's HTTP/2 module.

Streaming bodies. HTTP bodies don't have to be a known size ahead of time. A server can stream a response as bytes are produced. Hyper's body type hyper::body::Incoming is a stream of bytes that gets filled as data arrives. Axum's axum::body::Body is Axum's own body type that can hold an Incoming stream (for request bodies arriving over the network), a complete in-memory body, or an empty body - and Axum converts between the two where they meet.

The relationship between axum::body::Body and hyper::body::Incoming

One of the first places Axum developers actually see Hyper's types is when working with request or response bodies. Axum has its own Body type. It is not a wrapper around hyper::body::Incoming: it is an enum-like type of Axum's own that can contain an Incoming stream, alongside in-memory and empty variants. When a request arrives, Hyper hands Axum an Incoming body and Axum wraps it in its own Body; when a response leaves, Axum converts its Body back into something Hyper can send. You work with axum::body::Body (and helpers like axum::body::to_bytes); hyper::body::Incoming is what you see when you drop down to raw Hyper.

Here's a handler that reads a request body as raw bytes:

use axum::{body::Bytes, extract::Request, http::StatusCode, routing::post, Router};
async fn echo_body(req: Request) -> (StatusCode, String) {
    let body_bytes: Bytes = axum::body::to_bytes(req.into_body(), usize::MAX)
        .await
        .unwrap_or_default();
    let body_string = String::from_utf8_lossy(&body_bytes).to_string();
    (StatusCode::OK, body_string)
}
#[tokio::main]
async fn main() {
    let app = Router::new().route("/echo", post(echo_body));
    let listener = tokio::net::TcpListener::bind("127.0.0.1:3000").await.unwrap();
    axum::serve(listener, app).await.unwrap();
}

Here req.into_body() gives you an axum::body::Body. Calling axum::body::to_bytes consumes that body and collects all the data into a Bytes object. Under the hood, this is reading from a Hyper body stream. For a large body, collecting it all into memory like this would be a problem - that's why streaming exists - but for small JSON payloads and form submissions, it works fine.

The important thing to know as a beginner: you rarely need to name Hyper types in Axum code. Axum wraps them in its own types. But when you see error messages mentioning hyper::body::Incoming or hyper::Error, those are the underlying types surfacing.

Hyper in the broader Rust HTTP ecosystem

Hyper is not just a server library. It's two libraries in one: a client and a server.

On the client side, Hyper is the engine inside reqwest, the most popular HTTP client in Rust. When you write reqwest::get("https://api.github.com"), you're using Hyper's client implementation under the hood. This means a team that uses Axum for the server and reqwest for outbound calls is using Hyper in both directions.

On the server side, as we've explored, Hyper powers Axum, Warp, Tonic, and several other frameworks.

This dual role creates a powerful consistency. The HTTP parser is the same on both sides. The connection management code is the same. The performance characteristics carry over. A developer who understands Hyper's model can move between client and server code with less mental overhead.

gRPC and Tonic:

Tonic is a Rust gRPC framework, and it uses Hyper for its HTTP/2 transport layer. This means Axum and Tonic can share Tower middleware because both ultimately speak the same tower::Service language on top of Hyper. A tracing layer that works in Axum works in Tonic too.

Comparing Hyper to Actix-web's engine

Actix-web, another popular Rust framework, does not use Hyper. It has its own HTTP implementation, actix-http, built on actix-service and actix-rt (a service-based design on the Tokio runtime). The actor model was Actix-web 1; version 2 moved the request path onto services. This is a fundamental architectural difference.

Actix-web's approach means it controls every layer of the stack. This has historically given it very fast performance in benchmarks and a tightly integrated feature set. But it also means middleware written for Actix-web works only with Actix-web. The Tower ecosystem - timeouts, tracing, compression - doesn't directly apply.

Hyper's approach is the opposite. By being a separate, reusable library, Hyper enables an ecosystem of frameworks and middleware built on shared standards. Axum benefits from this enormously. When tower-http releases a new middleware, Axum can use it immediately because Axum's service model is Tower's service model, which is the same model Hyper uses.

Neither approach is strictly "better" - they optimize for different things. Actix-web optimizes for vertical integration and raw control. The Hyper ecosystem optimizes for composability and interoperability.

How Axum uses Tower on top of Hyper

The full stack for a typical Axum request looks like this:

Request arrives at the TCP socket
        ↓
Tokio accepts the connection
        ↓
Hyper parses the HTTP bytes
        ↓
Tower layers apply (trace, timeout, compression, CORS, auth)
        ↓
Axum Router matches the path and method
        ↓
Extractors run (Path, Query, State, Json)
        ↓
Your handler executes
        ↓
Response is assembled by Axum
        ↓
Tower layers apply to the response
        ↓
Hyper writes HTTP bytes back to the socket

Each layer has a specific job. Tokio handles the network I/O. Hyper handles the HTTP protocol. Tower handles cross-cutting concerns. Axum handles routing and extraction. Your code handles the business logic.

This separation is why Axum can be small and focused. It doesn't need to know how to parse HTTP/2 frames, because Hyper does. It doesn't need to know how to add timeouts, because Tower does. It focuses on the developer experience.

What Hyper's existence means for your Axum application

Let's make this practical. As an Axum developer, what does Hyper being underneath actually change for you?

First, performance is not something you need to optimize yourself. Hyper has been tuned by the Tokio team and the broader Rust community for years. When you use Axum, you get that performance automatically. There's no "make my Axum server fast" toggle you're missing.

Second, you can use tower-http middleware freely. Middleware like CompressionLayer, TraceLayer, and CorsLayer all operate at the Tower level, which sits between Hyper and Axum. You don't need Hyper-specific integration code.

Third, error types may mention Hyper. When a connection fails or a body read errors, the error may be a hyper::Error. Axum wraps or converts many of these, but not all of them. If you see hyper::Error in a type signature, that's the underlying HTTP layer surfacing.

Fourth, version compatibility matters. Axum 0.8 uses Hyper 1.x. If a library you want to use still depends on Hyper 0.14, you'll get dependency conflicts. Most active libraries have migrated, but older or unmaintained ones may not have.

Here's a practical example showing how Tower middleware, Axum, and Hyper all fit together in one working application:

use axum::{routing::get, Router};
use tower_http::{compression::CompressionLayer, trace::TraceLayer};
#[tokio::main]
async fn main() {
    // TraceLayer emits `tracing` spans, but nothing records them without
    // a subscriber installed - this line is what makes the spans visible.
    tracing_subscriber::fmt::init();
    let app = Router::new()
        .route("/", get(|| async { "Hello from the full stack" }))
        // Tower middleware applied between Hyper and Axum's Router
        .layer(CompressionLayer::new())
        .layer(TraceLayer::new_for_http());
    let listener = tokio::net::TcpListener::bind("127.0.0.1:3000").await.unwrap();
    // Hyper handles the actual HTTP work under the hood
    axum::serve(listener, app).await.unwrap();
}

This needs the following Cargo.toml:

[package]
name = "full-stack-demo"
version = "0.1.0"
edition = "2021"
[dependencies]
axum = "0.8"
tokio = { version = "1", features = ["full"] }
tower-http = { version = "0.7", features = ["compression-full", "trace"] }
tracing = "0.1"
tracing-subscriber = "0.3"

When you run this, every request gets logged by TraceLayer (a Tower middleware - the tracing_subscriber::fmt::init() line is what makes those spans visible; without a subscriber, the spans are emitted but recorded nowhere), compressed by CompressionLayer (another Tower middleware), routed by Axum's Router, and transported by Hyper. Four separate concerns, four separate layers, all working together.

The most common beginner mistake with this stack:

Newcomers often try to import Hyper directly to solve a problem Axum already handles. For example, they might try to use hyper::Server to start their Axum app, not realizing axum::serve exists. Or they might import hyper::body::Body when axum::body::Body is what they need. Before reaching for Hyper, check if Axum already exposes the functionality.

When you might work with Hyper directly

Most Axum developers never need to call Hyper directly. But there are a few legitimate scenarios where knowing Hyper is valuable.

Building custom connection handling. If you need to accept connections from a non-TCP source - a Unix domain socket, a TLS-terminating proxy, or a custom network protocol - you might use Hyper's server builder directly rather than axum::serve.

Implementing a custom Service from scratch. Axum's Router is a tower::Service. If you need a custom Service that doesn't fit Axum's routing model, you can implement it manually and hand it to Hyper directly.

Understanding performance characteristics. When you're benchmarking or debugging, knowing that Hyper manages keep-alive connections, header compression, and body chunking helps you interpret what you're seeing.

Writing a library that works across frameworks. If you're building a reusable component that should work with Axum, Warp, and Tonic, you might write it as a tower::Layer or tower::Service rather than an Axum-specific component. In that case, understanding the Hyper foundation helps you understand the constraints.

Here's what a custom Hyper server that manually configures HTTP/2 looks like, to give you a sense of what axum::serve abstracts away:

use hyper::service::service_fn;
use hyper_util::rt::{TokioExecutor, TokioIo};
use tokio::net::TcpListener;
async fn handle(_req: hyper::Request<hyper::body::Incoming>) -> Result<hyper::Response<String>, std::convert::Infallible> {
    Ok(hyper::Response::new("Custom Hyper server".to_string()))
}
#[tokio::main]
async fn main() {
    let listener = TcpListener::bind("127.0.0.1:3000").await.unwrap();
    loop {
        let (stream, _) = listener.accept().await.unwrap();
        let io = TokioIo::new(stream);
        tokio::spawn(async move {
            let service = service_fn(handle);
            // h2 = HTTP/2 only
            if let Err(e) = hyper::server::conn::http2::Builder::new(TokioExecutor::new())
                .serve_connection(io, service)
                .await
            {
                eprintln!("Connection error: {e}");
            }
        });
    }
}

This uses hyper_util - a companion crate to Hyper 1.0 that provides Tokio integration helpers like TokioIo and TokioExecutor. Note the import path: TokioIo and TokioExecutor live in hyper_util, not in hyper itself. In Hyper 0.x there was no adapter at all: the 0.14 server builder took your Tokio stream directly. Hyper 1.0 introduced its own I/O traits, and the Tokio adapters moved to the companion hyper-util crate - so if you see hyper::rt::TokioIo in an old example, that path no longer exists, and the fix is hyper_util::rt::TokioIo (with hyper-util in Cargo.toml). Axum's own Serve type wraps these hyper-util builders internally, which is why axum::serve needs no manual TokioIo setup.

The dependencies for this example:

[package]
name = "hyper-http2-demo"
version = "0.1.0"
edition = "2021"
[dependencies]
hyper = { version = "1", features = ["full"] }
hyper-util = { version = "0.1", features = ["full"] }
tokio = { version = "1", features = ["full"] }

You'll notice this is more verbose than the Axum version, and there's no routing, no extractors, no middleware. Every new feature you want - routing, JSON parsing, state sharing - you'd build yourself.

Hyper and HTTP versions

HTTP comes in several versions, and Hyper supports them all:

  • HTTP/1.0 - the original, now mostly a compatibility concern. Hyper supports it but HTTP/1.1 has largely replaced it.
  • HTTP/1.1 - the workhorse of the web. Simple, text-based, well understood. Works everywhere.
  • HTTP/2 - binary framing, request multiplexing, header compression. More efficient for many small requests.
  • HTTP/3 - runs over QUIC (a UDP-based protocol), not TCP. Hyper does not implement HTTP/3. This is a separate effort (h3 crate).

Axum's axum::serve defaults to HTTP/1.1 but can be configured to use HTTP/2 as well. HTTP/2 requires TLS for browser clients (though not for all clients), so most local development happens over HTTP/1.1.

To enable HTTP/2 with Axum, you enable the http2 feature on the axum dependency - there is no separate function to switch to. That is a common point of confusion: axum::serve is the function that lives in the axum::serve module, re-exported at the crate root, so axum::serve::serve and axum::serve are the same function, not two different ones. With the http2 feature on, Axum negotiates HTTP/2 (h2c over cleartext; browsers require TLS, which Axum does not provide itself - for HTTPS use a crate like axum-server or terminate TLS in a reverse proxy). This is beyond the scope of this page, but the point is: HTTP/2 support comes from Hyper, and Axum exposes configuration for it.

HTTP/2 is a Hyper feature:

Axum doesn't implement HTTP/2. It inherits it from Hyper. When you read Axum documentation about HTTP/2 configuration, you're reading a thin wrapper over Hyper's HTTP/2 server builder.

Hyper's role in the framework landscape

Zooming out, Hyper occupies a unique position in Rust web development. It's not a framework - it doesn't tell you how to structure your application. It's not a runtime - that's Tokio's job. It's a protocol implementation, and it's become the shared protocol layer for the Tokio-based web ecosystem.

This is unusual. In many other ecosystems, each framework implements its own HTTP layer. Django has its own, Rails has its own, Express has its own. This means improvements don't cross-pollinate, and middleware written for one framework doesn't work in another.

The Rust ecosystem chose a different path. By consolidating on Hyper as the shared HTTP layer, the ecosystem gets:

  • A single high-quality HTTP implementation maintained by the Tokio team
  • Middleware that works across frameworks via the Tower service abstraction
  • Performance improvements and security fixes that benefit everyone
  • A stable foundation that framework authors can build on without reimplementing protocol details

This is why Axum can be "just" a routing and request-handling library. The hard protocol work is already done.

The mental model to carry forward

When you build Axum applications, here's the mental model that will serve you well:

Tokio runs the event loop. It manages threads, schedules async tasks, and handles the network socket.

Hyper speaks HTTP. It parses requests, builds responses, manages connections, and handles protocol details.

Tower adds cross-cutting behavior. Timeouts, tracing, compression, authentication - these are layers that wrap around your application.

Axum routes and extracts. It maps URLs to handlers and pulls typed data out of requests.

Your code implements the business logic. Everything else is infrastructure.

You never need to think about most of these layers most of the time. But knowing they exist - and knowing that Hyper is the protocol layer - explains a lot of what you'll see: error messages, dependency conflicts, performance behavior, and the reason Axum's API looks the way it does.

When you see a 200 OK, that's Hyper:

Next time your Axum handler returns a response and you see it in the browser, remember: Axum assembled the response, but Hyper encoded it into HTTP bytes, managed the connection, and sent it back. You've been using Hyper all along.

Summary

Hyper exists to solve a hard problem - implementing the HTTP protocol correctly and efficiently - so that frameworks like Axum don't have to. This single decision shapes everything about Axum: its small API surface, its performance profile, its integration with the Tower ecosystem, and its ability to share improvements with other frameworks.

If you take away one insight from this page, it should be this: Axum is a thin, ergonomic layer over a battle-tested protocol engine. The routing, extractors, and handler model are Axum's contribution. The HTTP transport, connection management, and protocol correctness are Hyper's. You get the benefits of both without needing to understand either in full detail.

For an Axum developer, the practical implications are that you can trust the HTTP layer, focus on your application logic, and use Tower middleware freely. That division of labour - Hyper owns the protocol, Tower owns the cross-cutting concerns, Axum owns the ergonomics - is the whole reason Axum's API can stay small while the stack underneath stays powerful.