Module uri¶
A «URI» is a «Uniform Resource Identifier».
The IETF standard
says a URI string looks like this:
[scheme:]scheme-specific-part[#fragment]
A common type, a hierarchical URI, looks like this:
[scheme:][//authority][path][?query][#fragment]
For example the string „https://tarantool.org/x.html#y“
has three components: https is the scheme, tarantool.org/x.html is the path, and y is the fragment.
Tarantool’s URI module provides a routine which
converts URI strings into their components.
-
uri.
parse
(URI-string)¶ Параметры: - URI-string – a Uniform Resource Identifier
Returns: URI-components-table. Possible components are fragment, host, login, password, path, query, scheme, service.
Rtype: Table
Example:
tarantool> uri = require('uri') --- ... tarantool> uri.parse('http://x.html#y') --- - host: x.html scheme: http fragment: y ...