Skip to main content

PATH_ESCAPE_SET

Constant PATH_ESCAPE_SET 

Source
pub const PATH_ESCAPE_SET: &AsciiSet;
Expand description

The percent-encode set nginx uses when escaping normalized paths.

ยงExample

use percent_encoding::percent_encode;
use url_parse_nginx::PATH_ESCAPE_SET;

let encoded = percent_encode(b"/hello world", PATH_ESCAPE_SET);
assert_eq!(encoded.to_string(), "/hello%20world");