Percent-encode a cookie name or value with the proper encoding set.
(string: &str)
| 25 | |
| 26 | /// Percent-encode a cookie name or value with the proper encoding set. |
| 27 | pub(crate) fn encode(string: &str) -> impl std::fmt::Display + '_ { |
| 28 | percent_encoding::percent_encode(string.as_bytes(), COOKIE) |
| 29 | } |