Skip to content

Commit 6b859a8

Browse files
committed
checkpoint
1 parent 01a6267 commit 6b859a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+178
-1588
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
/Cargo.lock

src/common/accept.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ header! {
7878
/// ])
7979
/// );
8080
/// ```
81-
(Accept, "Accept") => (QualityItem<Mime>)+
81+
(Accept, ACCEPT) => (QualityItem<Mime>)+
8282

8383
test_accept {
8484
// Tests from the RFC

src/common/accept_charset.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ header! {
4848
/// AcceptCharset(vec![qitem(Charset::Ext("utf-8".to_owned()))])
4949
/// );
5050
/// ```
51-
(AcceptCharset, "Accept-Charset") => (QualityItem<Charset>)+
51+
(AcceptCharset, ACCEPT_CHARSET) => (QualityItem<Charset>)+
5252

5353
test_accept_charset {
5454
/// Testcase from RFC

src/common/accept_encoding.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ header! {
5757
/// ])
5858
/// );
5959
/// ```
60-
(AcceptEncoding, "Accept-Encoding") => (QualityItem<Encoding>)*
60+
(AcceptEncoding, ACCEPT_ENCODING) => (QualityItem<Encoding>)*
6161

6262
test_accept_encoding {
6363
// From the RFC

src/common/accept_language.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ header! {
5252
/// );
5353
/// # }
5454
/// ```
55-
(AcceptLanguage, "Accept-Language") => (QualityItem<LanguageTag>)+
55+
(AcceptLanguage, ACCEPT_LANGUAGE) => (QualityItem<LanguageTag>)+
5656

5757
test_accept_language {
5858
// From the RFC

src/common/accept_ranges.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ header! {
4848
/// ])
4949
/// );
5050
/// ```
51-
(AcceptRanges, "Accept-Ranges") => (RangeUnit)+
51+
(AcceptRanges, ACCEPT_RANGES) => (RangeUnit)+
5252

5353
test_acccept_ranges {
5454
test_header!(test1, vec![b"bytes"]);

src/common/access_control_allow_headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ header! {
5353
/// );
5454
/// # }
5555
/// ```
56-
(AccessControlAllowHeaders, "Access-Control-Allow-Headers") => (Ascii<String>)*
56+
(AccessControlAllowHeaders, ACCESS_CONTROL_ALLOW_HEADERS) => (Ascii<String>)*
5757

5858
test_access_control_allow_headers {
5959
test_header!(test1, vec![b"accept-language, date"]);

src/common/access_control_allow_methods.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ header! {
4848
/// ])
4949
/// );
5050
/// ```
51-
(AccessControlAllowMethods, "Access-Control-Allow-Methods") => (Method)*
51+
(AccessControlAllowMethods, ACCESS_CONTROL_ALLOW_METHODS) => (Method)*
5252

5353
test_access_control_allow_methods {
5454
test_header!(test1, vec![b"PUT, DELETE, XMODIFY"]);

src/common/access_control_expose_headers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ header! {
5555
/// );
5656
/// # }
5757
/// ```
58-
(AccessControlExposeHeaders, "Access-Control-Expose-Headers") => (Ascii<String>)*
58+
(AccessControlExposeHeaders, ACCESS_CONTROL_EXPOSE_HEADERS) => (Ascii<String>)*
5959

6060
test_access_control_expose_headers {
6161
test_header!(test1, vec![b"etag, content-length"]);

src/common/access_control_max_age.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ header! {
2323
/// let mut headers = Headers::new();
2424
/// headers.set(AccessControlMaxAge(1728000u32));
2525
/// ```
26-
(AccessControlMaxAge, "Access-Control-Max-Age") => [u32]
26+
(AccessControlMaxAge, ACCESS_CONTROL_MAX_AGE) => [u32]
2727

2828
test_access_control_max_age {
2929
test_header!(test1, vec![b"531"]);

0 commit comments

Comments
 (0)