mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-26 02:19:22 +02:00
export types
This commit is contained in:
@ -17,6 +17,8 @@ pub trait HttpRequestExtractor<T, S>: Sized where T: DeserializeOwned, S: 'stati
|
||||
|
||||
/// Extract typed information from the request's path.
|
||||
///
|
||||
/// `S` - application state type
|
||||
///
|
||||
/// ## Example
|
||||
///
|
||||
/// ```rust
|
||||
@ -99,6 +101,8 @@ impl<T, S> HttpRequestExtractor<T, S> for Path<T, S>
|
||||
|
||||
/// Extract typed information from from the request's query.
|
||||
///
|
||||
/// `S` - application state type
|
||||
///
|
||||
/// ## Example
|
||||
///
|
||||
/// ```rust
|
||||
|
@ -145,7 +145,7 @@ pub use route::Route;
|
||||
pub use resource::Resource;
|
||||
pub use context::HttpContext;
|
||||
pub use server::HttpServer;
|
||||
pub use extractor::{Path, Query, HttpRequestExtractor};
|
||||
pub use extractor::{Path, Query};
|
||||
|
||||
// re-exports
|
||||
pub use http::{Method, StatusCode, Version};
|
||||
@ -186,10 +186,11 @@ pub mod dev {
|
||||
pub use context::Drain;
|
||||
pub use info::ConnectionInfo;
|
||||
pub use handler::Handler;
|
||||
pub use with::With;
|
||||
pub use with::{With, WithHandler};
|
||||
pub use json::JsonBody;
|
||||
pub use router::{Router, Pattern};
|
||||
pub use param::{FromParam, Params};
|
||||
pub use extractor::HttpRequestExtractor;
|
||||
pub use httpmessage::{UrlEncoded, MessageBody};
|
||||
pub use httpresponse::HttpResponseBuilder;
|
||||
}
|
||||
|
Reference in New Issue
Block a user