sily.uri

URI/URL/URN parser.

URI scheme:

        userinfo            port                       |--query---|
        |      |            | |                        |          |
https://john.doe@www.ex.com:123/forum/question/;par=non?tag=n&ord=o#topmost
|   |   |        |        |   ||              ||      |            |     |
scheme  |        |--host--|   ||-----path-----||path params        |-tag-|
        |                     |
        |------authority------|

URI = scheme ":" ["//" authority] path ["?" query] ["#" fragment]
authority = [userinfo "@"] host [":" port]

URI can be either full URI:

scheme://userinfo@host:port/path?query#tag

Or portions of it:

scheme://userinfo@host?query
scheme://host/path
scheme:path
scheme://user:pass@host:244

Members

Functions

encodeURI
string encodeURI(URI uri)

Encodes URI struct into string

parseURI
URI parseURI(string uri)

Parses URI string

Structs

URI
struct URI

URI representation

Meta