Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ pub struct TestHeaders<'a> {
pub pragma: Option<Vec<&'a str>>,
}

let raw_headers = b"content-type: text/html\r\n\
content-length: 12\r\n\
accept: text/html, text/plain\r\n\
pragma: no-cache, public\r\n\
accept: application/json\r\n\r\n\
let raw_headers = b"Content-Type: text/html\r\n\
Content-Length: 12\r\n\
Accept: text/html, text/plain\r\n\
Pragma: no-cache, public\r\n\
Accept: application/json\r\n\r\n\
hello world!";

let (parsed_headers, body) = TestHeaders::parse_headers(raw_headers).unwrap();
Expand Down
2 changes: 1 addition & 1 deletion noggin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
//! - **Declarative**: Define your HTTP headers using Rust structs with strongly typed
//! header values.
//! - **Zero-copy capture**: Opt-in zero-copy header value parsing.
//! **Extensible**: Easily add new strongly typed header values.
//! - **Extensible**: Easily add new strongly typed header values.
//!
//! # Examples
//!
Expand Down