You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New functions uri.escape() and uri.unescape() have been introduced.
First one allows to escape symbols to a string and second one to
unescape symbols to a string according to RFC 3986 [1].
uri.escape() accepts a string that will be encoded and optionally a
table with encoding options: string with unreserved symbols that will not be encoded and boolean option that enables/disables encoding of a
space characters as '+'. By default uri.escape() uses a set of
unreserved symbols defined in RFC 3986 ("2.3. Unreserved Characters")
and encoding of space characters as '+' is disabled. Table with default
encoding options is defined as uri.RFC3986.
uri.unescape() accepts a string that will be decoded and optionally a
table with decoding options: string with unreserved symbols (these
symbols are actually unused by decoding function) and boolean option
that enables/disables decoding of '+' as a space character. Table with
default decoding options is defined as uri.RFC3986.
See detailed description in RFC "http: add percent-encoding/decoding of
query string in request" [2].
veod32
added
uri
2.11
2.11 release and the associated technical debt
and removed
server
[area] Task relates to Tarantool's server (core) functionality
labels
Mar 6, 2023
Related dev. issue(s): tarantool/tarantool#3682
Product: Tarantool
Since: 2.11
Root document:
SME: @ ligurio
Details
New functions
uri.escape()
anduri.unescape()
have been introduced.First one allows to escape symbols to a string and second one to
unescape symbols to a string according to RFC 3986 [1].
Examples:
uri.escape()
accepts a string that will be encoded and optionally atable with encoding options: string with unreserved symbols that will
not be encoded and boolean option that enables/disables encoding of a
space characters as '+'. By default
uri.escape()
uses a set ofunreserved symbols defined in RFC 3986 ("2.3. Unreserved Characters")
and encoding of space characters as '+' is disabled. Table with default
encoding options is defined as
uri.RFC3986
.uri.unescape()
accepts a string that will be decoded and optionally atable with decoding options: string with unreserved symbols (these
symbols are actually unused by decoding function) and boolean option
that enables/disables decoding of '+' as a space character. Table with
default decoding options is defined as
uri.RFC3986
.See detailed description in RFC "http: add percent-encoding/decoding of
query string in request" [2].
NO_WRAP
https://datatracker.ietf.org/doc/html/rfc3986
NO_WRAP
Requested by @ ligurio in tarantool/tarantool@5ebe186.
The text was updated successfully, but these errors were encountered: