mirror of
https://github.com/tokio-rs/axum.git
synced 2025-09-27 04:50:31 +00:00
Use http
re-export in docs (#1554)
This commit is contained in:
parent
8d2fb3618e
commit
3ab3e5f91d
@ -82,7 +82,7 @@ pub trait FromRequestParts<S>: Sized {
|
||||
/// use axum::{
|
||||
/// async_trait,
|
||||
/// extract::FromRequest,
|
||||
/// http::Request,
|
||||
/// http::{self, Request},
|
||||
/// };
|
||||
///
|
||||
/// struct MyExtractor;
|
||||
|
@ -5,8 +5,7 @@
|
||||
//! Some examples of handlers:
|
||||
//!
|
||||
//! ```rust
|
||||
//! use axum::body::Bytes;
|
||||
//! use http::StatusCode;
|
||||
//! use axum::{body::Bytes, http::StatusCode};
|
||||
//!
|
||||
//! // Handler that immediately returns an empty `200 OK` response.
|
||||
//! async fn unit_handler() {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user