1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-01-31 02:52:53 +01:00
actix-web/src/lib.rs

88 lines
1.9 KiB
Rust
Raw Normal View History

2017-10-22 21:40:41 -07:00
//! Web framework for [Actix](https://github.com/actix/actix)
2017-10-06 21:48:14 -07:00
#[macro_use]
extern crate log;
extern crate time;
extern crate bytes;
2017-10-07 21:48:00 -07:00
extern crate sha1;
2017-10-16 19:21:24 -07:00
extern crate regex;
2017-10-06 21:48:14 -07:00
#[macro_use]
extern crate futures;
extern crate tokio_io;
2017-10-29 06:05:31 -07:00
extern crate tokio_core;
2017-10-08 14:56:51 -07:00
extern crate cookie;
2017-10-06 21:48:14 -07:00
extern crate http;
extern crate httparse;
extern crate http_range;
2017-10-18 23:43:50 -07:00
extern crate mime;
2017-10-16 01:19:23 -07:00
extern crate mime_guess;
extern crate url;
extern crate percent_encoding;
2017-10-06 21:48:14 -07:00
extern crate actix;
extern crate h2 as http2;
2017-10-06 21:48:14 -07:00
#[cfg(feature="tls")]
extern crate native_tls;
#[cfg(feature="tls")]
extern crate tokio_tls;
#[cfg(feature="openssl")]
extern crate openssl;
#[cfg(feature="openssl")]
extern crate tokio_openssl;
2017-10-06 21:48:14 -07:00
mod application;
2017-10-23 23:25:32 -07:00
mod body;
2017-10-06 21:48:14 -07:00
mod context;
mod error;
mod date;
mod httprequest;
2017-10-15 09:33:17 -07:00
mod httpresponse;
mod logger;
2017-10-08 20:16:48 -07:00
mod payload;
2017-10-06 21:48:14 -07:00
mod resource;
2017-10-16 19:21:24 -07:00
mod recognizer;
2017-10-06 21:48:14 -07:00
mod route;
2017-10-16 19:21:24 -07:00
mod task;
mod staticfiles;
2017-10-06 21:48:14 -07:00
mod server;
mod channel;
2017-10-07 21:48:00 -07:00
mod wsframe;
mod wsproto;
2017-11-02 12:54:09 -07:00
mod h1;
mod h2;
mod h1writer;
2017-11-04 09:07:44 -07:00
mod h2writer;
2017-10-07 21:48:00 -07:00
2017-10-09 23:07:32 -07:00
pub mod ws;
pub mod dev;
2017-10-06 21:48:14 -07:00
pub mod httpcodes;
2017-10-18 23:43:50 -07:00
pub mod multipart;
pub use error::ParseError;
2017-10-23 23:25:32 -07:00
pub use body::{Body, BinaryBody};
pub use application::{Application, ApplicationBuilder, Middleware};
pub use httprequest::{HttpRequest, UrlEncoded};
2017-10-23 23:25:32 -07:00
pub use httpresponse::{HttpResponse, HttpResponseBuilder};
2017-10-13 16:33:23 -07:00
pub use payload::{Payload, PayloadItem, PayloadError};
2017-11-03 13:35:34 -07:00
pub use route::{Frame, Route, RouteFactory, RouteHandler, RouteResult};
2017-10-29 21:39:59 -07:00
pub use resource::{Reply, Resource, HandlerResult};
2017-10-16 19:21:24 -07:00
pub use recognizer::{Params, RouteRecognizer};
pub use logger::Logger;
2017-10-06 21:48:14 -07:00
pub use server::HttpServer;
pub use context::HttpContext;
pub use channel::HttpChannel;
pub use staticfiles::StaticFiles;
2017-10-14 10:40:58 -07:00
// re-exports
pub use http::{Method, StatusCode, Version};
2017-10-14 10:40:58 -07:00
pub use cookie::{Cookie, CookieBuilder};
pub use cookie::{ParseError as CookieParseError};
pub use http_range::{HttpRange, HttpRangeParseError};
#[cfg(feature="tls")]
pub use native_tls::Pkcs12;
#[cfg(feature="openssl")]
pub use openssl::pkcs12::Pkcs12;