1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-28 10:02:38 +01:00
actix-web/src/dev.rs

32 lines
990 B
Rust
Raw Normal View History

2017-10-14 16:59:35 +02:00
//! The `actix-web` prelude for library developers
2017-10-10 08:07:32 +02:00
//!
//! The purpose of this module is to alleviate imports of many common actix traits
//! by adding a glob import to the top of actix heavy modules:
//!
//! ```
//! # #![allow(unused_imports)]
2017-10-14 16:59:35 +02:00
//! use actix_web::dev::*;
2017-10-10 08:07:32 +02:00
//! ```
pub use ws;
pub use httpcodes;
pub use error::ParseError;
2017-10-15 23:17:41 +02:00
pub use application::{Application, ApplicationBuilder};
pub use httprequest::HttpRequest;
2017-10-15 23:17:41 +02:00
pub use httpresponse::{Body, HttpResponse, HttpResponseBuilder};
pub use payload::{Payload, PayloadItem, PayloadError};
2017-10-10 08:07:32 +02:00
pub use resource::{Reply, Resource};
pub use route::{Route, RouteFactory, RouteHandler};
2017-10-17 04:21:24 +02:00
pub use recognizer::Params;
2017-10-10 08:07:32 +02:00
pub use server::HttpServer;
pub use context::HttpContext;
pub use staticfiles::StaticFiles;
// re-exports
2017-10-15 23:17:41 +02:00
pub use http::{Method, StatusCode};
pub use cookie::{Cookie, CookieBuilder};
pub use cookie::{ParseError as CookieParseError};
pub use http_range::{HttpRange, HttpRangeParseError};
// dev specific
pub use task::Task;