2017-10-23 04:40:41 +00:00
|
|
|
//! Web framework for [Actix](https://github.com/actix/actix)
|
2017-10-07 04:48:14 +00:00
|
|
|
|
2017-11-24 18:28:43 +00:00
|
|
|
#![cfg_attr(actix_nightly, feature(
|
2017-11-24 18:03:13 +00:00
|
|
|
specialization, // for impl ErrorResponse for std::error::Error
|
|
|
|
))]
|
|
|
|
|
2017-10-07 04:48:14 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate log;
|
|
|
|
extern crate time;
|
|
|
|
extern crate bytes;
|
2017-10-08 04:48:00 +00:00
|
|
|
extern crate sha1;
|
2017-10-17 02:21:24 +00:00
|
|
|
extern crate regex;
|
2017-10-07 04:48:14 +00:00
|
|
|
#[macro_use]
|
|
|
|
extern crate futures;
|
|
|
|
extern crate tokio_io;
|
2017-10-29 13:05:31 +00:00
|
|
|
extern crate tokio_core;
|
2017-10-08 21:56:51 +00:00
|
|
|
|
2017-11-16 06:06:28 +00:00
|
|
|
extern crate failure;
|
|
|
|
#[macro_use] extern crate failure_derive;
|
|
|
|
|
2017-10-15 05:52:38 +00:00
|
|
|
extern crate cookie;
|
2017-10-07 04:48:14 +00:00
|
|
|
extern crate http;
|
|
|
|
extern crate httparse;
|
2017-10-15 05:52:38 +00:00
|
|
|
extern crate http_range;
|
2017-10-19 06:43:50 +00:00
|
|
|
extern crate mime;
|
2017-10-16 08:19:23 +00:00
|
|
|
extern crate mime_guess;
|
2017-10-15 05:52:38 +00:00
|
|
|
extern crate url;
|
2017-11-10 21:26:12 +00:00
|
|
|
extern crate libc;
|
2017-11-16 06:06:28 +00:00
|
|
|
extern crate serde;
|
|
|
|
extern crate serde_json;
|
2017-11-06 09:24:49 +00:00
|
|
|
extern crate flate2;
|
|
|
|
extern crate brotli2;
|
2017-10-28 05:19:00 +00:00
|
|
|
extern crate percent_encoding;
|
2017-10-07 04:48:14 +00:00
|
|
|
extern crate actix;
|
2017-11-03 18:29:44 +00:00
|
|
|
extern crate h2 as http2;
|
2017-10-07 04:48:14 +00:00
|
|
|
|
2017-12-04 02:51:52 +00:00
|
|
|
#[cfg(test)]
|
|
|
|
#[macro_use] extern crate serde_derive;
|
2017-11-16 06:06:28 +00:00
|
|
|
|
2017-11-01 23:34:58 +00:00
|
|
|
#[cfg(feature="tls")]
|
|
|
|
extern crate native_tls;
|
|
|
|
#[cfg(feature="tls")]
|
|
|
|
extern crate tokio_tls;
|
|
|
|
|
2017-11-04 19:33:14 +00:00
|
|
|
#[cfg(feature="openssl")]
|
|
|
|
extern crate openssl;
|
|
|
|
#[cfg(feature="openssl")]
|
|
|
|
extern crate tokio_openssl;
|
|
|
|
|
2017-10-07 04:48:14 +00:00
|
|
|
mod application;
|
2017-10-24 06:25:32 +00:00
|
|
|
mod body;
|
2017-10-07 04:48:14 +00:00
|
|
|
mod context;
|
|
|
|
mod date;
|
2017-11-07 00:23:58 +00:00
|
|
|
mod encoding;
|
2017-10-15 05:52:38 +00:00
|
|
|
mod httprequest;
|
2017-10-15 16:33:17 +00:00
|
|
|
mod httpresponse;
|
2017-10-09 03:16:48 +00:00
|
|
|
mod payload;
|
2017-10-07 04:48:14 +00:00
|
|
|
mod resource;
|
2017-10-17 02:21:24 +00:00
|
|
|
mod recognizer;
|
2017-12-04 22:53:40 +00:00
|
|
|
mod handler;
|
2017-11-25 06:15:52 +00:00
|
|
|
mod pipeline;
|
2017-10-07 04:48:14 +00:00
|
|
|
mod server;
|
2017-11-04 19:33:14 +00:00
|
|
|
mod channel;
|
2017-10-08 04:48:00 +00:00
|
|
|
mod wsframe;
|
|
|
|
mod wsproto;
|
2017-11-02 19:54:09 +00:00
|
|
|
mod h1;
|
|
|
|
mod h2;
|
2017-11-03 18:29:44 +00:00
|
|
|
mod h1writer;
|
2017-11-04 16:07:44 +00:00
|
|
|
mod h2writer;
|
2017-10-08 04:48:00 +00:00
|
|
|
|
2017-12-03 22:22:04 +00:00
|
|
|
pub mod fs;
|
2017-10-10 06:07:32 +00:00
|
|
|
pub mod ws;
|
|
|
|
pub mod dev;
|
2017-11-16 06:06:28 +00:00
|
|
|
pub mod error;
|
2017-10-07 04:48:14 +00:00
|
|
|
pub mod httpcodes;
|
2017-10-19 06:43:50 +00:00
|
|
|
pub mod multipart;
|
2017-11-10 06:08:54 +00:00
|
|
|
pub mod middlewares;
|
2017-12-04 21:32:05 +00:00
|
|
|
pub mod pred;
|
2017-11-29 03:49:17 +00:00
|
|
|
pub use error::{Error, Result};
|
2017-11-07 00:23:58 +00:00
|
|
|
pub use encoding::ContentEncoding;
|
2017-11-10 21:42:32 +00:00
|
|
|
pub use body::{Body, Binary};
|
2017-11-27 06:53:28 +00:00
|
|
|
pub use application::Application;
|
2017-10-17 23:46:57 +00:00
|
|
|
pub use httprequest::{HttpRequest, UrlEncoded};
|
2017-11-27 06:53:28 +00:00
|
|
|
pub use httpresponse::HttpResponse;
|
2017-11-16 06:06:28 +00:00
|
|
|
pub use payload::{Payload, PayloadItem};
|
2017-12-04 22:53:40 +00:00
|
|
|
pub use handler::{Reply, Json, FromRequest};
|
2017-12-04 21:32:05 +00:00
|
|
|
pub use resource::{Route, Resource};
|
2017-11-27 06:53:28 +00:00
|
|
|
pub use recognizer::Params;
|
2017-10-07 04:48:14 +00:00
|
|
|
pub use server::HttpServer;
|
|
|
|
pub use context::HttpContext;
|
2017-10-14 17:40:58 +00:00
|
|
|
|
|
|
|
// re-exports
|
2017-10-29 21:51:30 +00:00
|
|
|
pub use http::{Method, StatusCode, Version};
|
2017-11-27 06:53:28 +00:00
|
|
|
pub use cookie::Cookie;
|
2017-11-16 06:06:28 +00:00
|
|
|
pub use http_range::HttpRange;
|
2017-11-01 23:34:58 +00:00
|
|
|
|
|
|
|
#[cfg(feature="tls")]
|
|
|
|
pub use native_tls::Pkcs12;
|
2017-11-04 19:33:14 +00:00
|
|
|
|
|
|
|
#[cfg(feature="openssl")]
|
|
|
|
pub use openssl::pkcs12::Pkcs12;
|