MCPcopy Create free account
hub / github.com/LukeMathWalker/biscotti / encode

Function encode

src/encoding.rs:27–29  ·  view source on GitHub ↗

Percent-encode a cookie name or value with the proper encoding set.

(string: &str)

Source from the content-addressed store, hash-verified

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

Callers 1

process_outgoingMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected