2017-10-09 05:55:44 +02:00
|
|
|
//! Http framework for [Actix](https://github.com/fafhrd91/actix)
|
2017-10-07 06:48:14 +02:00
|
|
|
|
2017-10-13 23:43:17 +02:00
|
|
|
#![cfg_attr(feature="nightly", feature(
|
|
|
|
try_trait, // std::ops::Try #42327
|
|
|
|
))]
|
|
|
|
|
2017-10-07 06:48:14 +02:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
|
|
|
extern crate time;
|
|
|
|
extern crate bytes;
|
2017-10-08 06:48:00 +02:00
|
|
|
extern crate sha1;
|
2017-10-15 07:52:38 +02:00
|
|
|
extern crate regex;
|
|
|
|
#[macro_use]
|
|
|
|
extern crate lazy_static;
|
2017-10-07 06:48:14 +02:00
|
|
|
#[macro_use]
|
|
|
|
extern crate futures;
|
|
|
|
extern crate tokio_core;
|
|
|
|
extern crate tokio_io;
|
|
|
|
extern crate tokio_proto;
|
2017-10-08 23:56:51 +02:00
|
|
|
|
2017-10-15 07:52:38 +02:00
|
|
|
extern crate cookie;
|
2017-10-07 06:48:14 +02:00
|
|
|
extern crate http;
|
|
|
|
extern crate httparse;
|
2017-10-15 07:52:38 +02:00
|
|
|
extern crate http_range;
|
2017-10-07 06:48:14 +02:00
|
|
|
extern crate route_recognizer;
|
2017-10-15 07:52:38 +02:00
|
|
|
extern crate url;
|
2017-10-07 06:48:14 +02:00
|
|
|
extern crate actix;
|
|
|
|
|
|
|
|
mod application;
|
|
|
|
mod context;
|
|
|
|
mod error;
|
|
|
|
mod date;
|
|
|
|
mod decode;
|
2017-10-15 07:52:38 +02:00
|
|
|
mod httprequest;
|
2017-10-07 06:48:14 +02:00
|
|
|
mod httpmessage;
|
2017-10-09 05:16:48 +02:00
|
|
|
mod payload;
|
2017-10-07 06:48:14 +02:00
|
|
|
mod resource;
|
|
|
|
mod route;
|
|
|
|
mod router;
|
|
|
|
mod task;
|
|
|
|
mod reader;
|
2017-10-15 07:52:38 +02:00
|
|
|
mod staticfiles;
|
2017-10-07 06:48:14 +02:00
|
|
|
mod server;
|
2017-10-08 06:48:00 +02:00
|
|
|
mod wsframe;
|
|
|
|
mod wsproto;
|
|
|
|
|
2017-10-10 08:07:32 +02:00
|
|
|
pub mod ws;
|
|
|
|
pub mod dev;
|
2017-10-07 06:48:14 +02:00
|
|
|
pub mod httpcodes;
|
2017-10-15 07:52:38 +02:00
|
|
|
pub use error::ParseError;
|
2017-10-08 23:56:51 +02:00
|
|
|
pub use application::Application;
|
2017-10-15 07:52:38 +02:00
|
|
|
pub use httprequest::HttpRequest;
|
|
|
|
pub use httpmessage::{Body, Builder, HttpResponse};
|
2017-10-14 01:33:23 +02:00
|
|
|
pub use payload::{Payload, PayloadItem, PayloadError};
|
2017-10-08 23:56:51 +02:00
|
|
|
pub use router::RoutingMap;
|
|
|
|
pub use resource::{Reply, Resource};
|
2017-10-09 05:16:48 +02:00
|
|
|
pub use route::{Route, RouteFactory, RouteHandler};
|
2017-10-07 06:48:14 +02:00
|
|
|
pub use server::HttpServer;
|
|
|
|
pub use context::HttpContext;
|
2017-10-15 07:52:38 +02:00
|
|
|
pub use staticfiles::StaticFiles;
|
2017-10-14 19:40:58 +02:00
|
|
|
|
|
|
|
// re-exports
|
|
|
|
pub use cookie::{Cookie, CookieBuilder};
|
|
|
|
pub use cookie::{ParseError as CookieParseError};
|
2017-10-08 08:59:57 +02:00
|
|
|
pub use route_recognizer::Params;
|
2017-10-15 07:52:38 +02:00
|
|
|
pub use http_range::{HttpRange, HttpRangeParseError};
|