mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-24 16:32:59 +01:00
90 lines
1.9 KiB
Rust
90 lines
1.9 KiB
Rust
//! Web framework for [Actix](https://github.com/actix/actix)
|
|
|
|
#[macro_use]
|
|
extern crate log;
|
|
extern crate time;
|
|
extern crate bytes;
|
|
extern crate sha1;
|
|
extern crate regex;
|
|
#[macro_use]
|
|
extern crate futures;
|
|
extern crate tokio_io;
|
|
extern crate tokio_core;
|
|
|
|
extern crate cookie;
|
|
extern crate http;
|
|
extern crate httparse;
|
|
extern crate http_range;
|
|
extern crate mime;
|
|
extern crate mime_guess;
|
|
extern crate url;
|
|
extern crate flate2;
|
|
extern crate brotli2;
|
|
extern crate percent_encoding;
|
|
extern crate actix;
|
|
extern crate h2 as http2;
|
|
|
|
#[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;
|
|
|
|
mod application;
|
|
mod body;
|
|
mod context;
|
|
mod error;
|
|
mod date;
|
|
mod httprequest;
|
|
mod httpresponse;
|
|
mod logger;
|
|
mod payload;
|
|
mod resource;
|
|
mod recognizer;
|
|
mod route;
|
|
mod task;
|
|
mod staticfiles;
|
|
mod server;
|
|
mod channel;
|
|
mod wsframe;
|
|
mod wsproto;
|
|
mod h1;
|
|
mod h2;
|
|
mod h1writer;
|
|
mod h2writer;
|
|
|
|
pub mod ws;
|
|
pub mod dev;
|
|
pub mod httpcodes;
|
|
pub mod multipart;
|
|
pub use error::ParseError;
|
|
pub use body::{Body, BinaryBody};
|
|
pub use application::{Application, ApplicationBuilder, Middleware};
|
|
pub use httprequest::{HttpRequest, UrlEncoded};
|
|
pub use httpresponse::{HttpResponse, HttpResponseBuilder};
|
|
pub use payload::{Payload, PayloadItem, PayloadError};
|
|
pub use route::{Frame, Route, RouteFactory, RouteHandler, RouteResult};
|
|
pub use resource::{Reply, Resource, HandlerResult};
|
|
pub use recognizer::{Params, RouteRecognizer};
|
|
pub use logger::Logger;
|
|
pub use server::HttpServer;
|
|
pub use context::HttpContext;
|
|
pub use channel::HttpChannel;
|
|
pub use staticfiles::StaticFiles;
|
|
|
|
// re-exports
|
|
pub use http::{Method, StatusCode, Version};
|
|
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;
|