2017-10-14 07:59:35 -07:00
|
|
|
//! The `actix-web` prelude for library developers
|
2017-10-09 23:07:32 -07: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 07:59:35 -07:00
|
|
|
//! use actix_web::dev::*;
|
2017-10-09 23:07:32 -07:00
|
|
|
//! ```
|
|
|
|
pub use ws;
|
|
|
|
pub use httpcodes;
|
2017-10-14 22:52:38 -07:00
|
|
|
pub use error::ParseError;
|
2017-10-15 14:17:41 -07:00
|
|
|
pub use application::{Application, ApplicationBuilder};
|
2017-10-14 22:52:38 -07:00
|
|
|
pub use httprequest::HttpRequest;
|
2017-10-15 14:17:41 -07:00
|
|
|
pub use httpresponse::{Body, HttpResponse, HttpResponseBuilder};
|
2017-10-14 22:52:38 -07:00
|
|
|
pub use payload::{Payload, PayloadItem, PayloadError};
|
2017-10-09 23:07:32 -07:00
|
|
|
pub use router::RoutingMap;
|
|
|
|
pub use resource::{Reply, Resource};
|
|
|
|
pub use route::{Route, RouteFactory, RouteHandler};
|
2017-10-16 19:21:24 -07:00
|
|
|
pub use recognizer::Params;
|
2017-10-09 23:07:32 -07:00
|
|
|
pub use server::HttpServer;
|
|
|
|
pub use context::HttpContext;
|
2017-10-14 22:52:38 -07:00
|
|
|
pub use staticfiles::StaticFiles;
|
|
|
|
|
|
|
|
// re-exports
|
2017-10-15 14:17:41 -07:00
|
|
|
pub use http::{Method, StatusCode};
|
2017-10-14 22:52:38 -07:00
|
|
|
pub use cookie::{Cookie, CookieBuilder};
|
|
|
|
pub use cookie::{ParseError as CookieParseError};
|
|
|
|
pub use http_range::{HttpRange, HttpRangeParseError};
|
|
|
|
|
|
|
|
// dev specific
|
|
|
|
pub use task::Task;
|