Skip to content

Commit

Permalink
New range request module
Browse files Browse the repository at this point in the history
This introduce a new 'range' module
to support encoding, decoding and validation of HTTP range requests.
  • Loading branch information
ririsoft committed Jun 9, 2020
1 parent 0836aa5 commit bf88870
Show file tree
Hide file tree
Showing 3 changed files with 600 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/headers/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ pub const PROXY_AUTHENTICATE: HeaderName = HeaderName::from_lowercase_str("proxy
/// The `Proxy-Authorization` Header
pub const PROXY_AUTHORIZATION: HeaderName = HeaderName::from_lowercase_str("proxy-authorization");

/// The `Range` Header
pub const RANGE: HeaderName = HeaderName::from_lowercase_str("range");

/// The `Referer` Header
pub const REFERER: HeaderName = HeaderName::from_lowercase_str("referer");

Expand Down
1 change: 1 addition & 0 deletions src/headers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ mod into_iter;
mod iter;
mod iter_mut;
mod names;
pub mod range;
mod to_header_values;
mod values;

Expand Down

0 comments on commit bf88870

Please sign in to comment.