1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-08-31 00:50:20 +02:00

re-arrange modules and exports

This commit is contained in:
Nikolay Kim
2018-03-30 17:31:18 -07:00
parent b16419348e
commit 9e751de707
49 changed files with 373 additions and 483 deletions

View File

@@ -1,5 +1,5 @@
use http::Method;
use header::http;
use http::header;
header! {
/// `Allow` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.4.1)
@@ -26,7 +26,7 @@ header! {
/// # extern crate http;
/// # extern crate actix_web;
/// use actix_web::httpcodes::HttpOk;
/// use actix_web::header::Allow;
/// use actix_web::http::header::Allow;
/// use http::Method;
///
/// # fn main() {
@@ -41,7 +41,7 @@ header! {
/// # extern crate http;
/// # extern crate actix_web;
/// use actix_web::httpcodes::HttpOk;
/// use actix_web::header::Allow;
/// use actix_web::http::header::Allow;
/// use http::Method;
///
/// # fn main() {
@@ -55,7 +55,7 @@ header! {
/// );
/// # }
/// ```
(Allow, http::ALLOW) => (Method)*
(Allow, header::ALLOW) => (Method)*
test_allow {
// From the RFC