overloadbrief URI-escape a string.
Declared in <folly/String.h>
enum class UriEscapeMode : unsigned char;
Appends the result to the output string.
Alphanumeric characters and other characters marked as "unreserved" in RFC 3986 ( -_.~ ) are left unchanged. In PATH mode, the forward slash (/) is also left unchanged. In QUERY mode, spaces are replaced by '+'. All other characters are percent-encoded.
| Name | Description |
|---|---|
ALL | Percent-encode every reserved character. |
QUERY | Query mode, where spaces become '+'. |
PATH | Path mode, where the forward slash is left unchanged. |