1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-29 16:19:19 +02:00

reexpost extractors in web module

This commit is contained in:
Nikolay Kim
2019-03-07 11:43:46 -08:00
parent 22708e78a9
commit ceb6d45bf2
6 changed files with 41 additions and 42 deletions

View File

@@ -41,7 +41,7 @@ pub use actix_http::Response as HttpResponse;
pub use actix_http::{body, error, http, Error, HttpMessage, ResponseError, Result};
pub use crate::app::App;
pub use crate::extract::{FromRequest, Json};
pub use crate::extract::FromRequest;
pub use crate::request::HttpRequest;
pub use crate::resource::Resource;
pub use crate::responder::{Either, Responder};
@@ -49,7 +49,6 @@ pub use crate::route::Route;
pub use crate::scope::Scope;
pub use crate::server::HttpServer;
pub use crate::service::{ServiceFromRequest, ServiceRequest, ServiceResponse};
pub use crate::state::State;
pub mod dev {
//! The `actix-web` prelude for library developers
@@ -93,6 +92,9 @@ pub mod web {
use crate::route::Route;
use crate::scope::Scope;
pub use crate::extract::{Json, Path, Query};
pub use crate::state::State;
/// Create resource for a specific path.
///
/// Resources may have variable path segments. For example, a