10. Boost package for the URI parser
The uriparser_boost module implements additional infrastructure for the URI parser.
All functions and symbols are in “uriparser_boost” module, use require to get access to it.
require daslib/uriparser_boost
10.1. Split and compose
- uri_split_full_path(uri: Uri implicit) : array<string>()
Split the full path of a URI into its components.
- Arguments
uri : Uri implicit
- uri_compose_query(query: table<string, string>) : string()
Compose a query string from a table of key-value pairs.
- Arguments
query : table<string;string>
- uri_compose_query_in_order(query: table<string, string>) : string()
Compose a query string from a table of key-value pairs, in the sorted order.
- Arguments
query : table<string;string>
- uri_compose(scheme: string; userInfo: string; hostText: string; portText: string; path: string; query: string; fragment: string) : Uri()
Compose a URI from its components.
- Arguments
scheme : string
userInfo : string
hostText : string
portText : string
path : string
query : string
fragment : string
10.2. Component accessors
- scheme(uri: Uri implicit) : string()
Returns the scheme of a URI.
- Arguments
uri : Uri implicit
- user_info(uri: Uri implicit) : string()
Return the user info of a URI.
- Arguments
uri : Uri implicit
- host(uri: Uri implicit) : string()
Return the host of a URI.
- Arguments
uri : Uri implicit
- port(uri: Uri implicit) : string()
Return the port of a URI.
- Arguments
uri : Uri implicit
- path(uri: Uri implicit) : string()
Return the path of a URI.
- Arguments
uri : Uri implicit
- query(uri: Uri implicit) : string()
Return the query of a URI.
- Arguments
uri : Uri implicit
- fragment(uri: Uri implicit) : string()
Return the fragment of a URI.
- Arguments
uri : Uri implicit