mirror of
https://github.com/tokio-rs/axum.git
synced 2024-12-28 23:38:20 +01:00
Use http
re-export in docs (#1554)
This commit is contained in:
parent
8d2fb3618e
commit
3ab3e5f91d
2 changed files with 2 additions and 3 deletions
|
@ -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…
Reference in a new issue