Use http re-export in docs (#1554)

This commit is contained in:
Tshepang Mbambo 2022-11-20 22:48:41 +02:00 committed by GitHub
parent 8d2fb3618e
commit 3ab3e5f91d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View file

@ -82,7 +82,7 @@ pub trait FromRequestParts<S>: Sized {
/// use axum::{
/// async_trait,
/// extract::FromRequest,
/// http::Request,
/// http::{self, Request},
/// };
///
/// struct MyExtractor;

View file

@ -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() {}