Skip to content

Commit

Permalink
add docs to cookie headers recomending use of cookie crate
Browse files Browse the repository at this point in the history
  • Loading branch information
dekellum committed Oct 28, 2021
1 parent 1dfcbfd commit 0b05e9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/header/common/cookie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ use header::internals::VecMap;
/// * `SID=31d4d96e407aad42`
/// * `SID=31d4d96e407aad42; lang=en-US`
///
/// Consider using the _cookie_ crate for parsing/decoding or encoding
/// cookie values.
///
/// # Example
/// ```
/// # extern crate http;
Expand Down
5 changes: 5 additions & 0 deletions src/header/common/set_cookie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ use std::str::from_utf8;
/// `SetCookie` _must not_ be encoded as a comma-delimited list. For this
/// reason, it doesn't implement `fmt::Display` (and `std::string::ToString`).
///
/// Consider using the _cookie_ crate for parsing/decoding or encoding
/// cookie values. [Usage example].
///
/// [Usage example]: https://github.com/dekellum/hyperx/issues/30#issuecomment-733151305
///
/// # ABNF
///
/// ```text
Expand Down

0 comments on commit 0b05e9a

Please sign in to comment.