4.4. Boost package for the URI parser
The URIPARSER_BOOST module extends URI handling with convenience functions for common operations like building URIs from components, extracting query parameters, and resolving relative paths.
All functions and symbols are in “uriparser_boost” module, use require to get access to it.
require daslib/uriparser_boost
4.4.1. Split and compose
- uriparser_boost::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
- uriparser_boost::uri_compose_query(query: table<string, string>) : string()
Compose a query string from a table of key-value pairs.
- Arguments
query : table<string;string>
- uriparser_boost::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>
- uriparser_boost::uri_split_full_path(uri: Uri) : array<string>()
Split the full path of a URI into its components.
- Arguments
uri : Uri implicit
4.4.2. Component accessors
- uriparser_boost::fragment(uri: Uri) : string()
Return the fragment of a URI.
- Arguments
uri : Uri implicit
- uriparser_boost::host(uri: Uri) : string()
Return the host of a URI.
- Arguments
uri : Uri implicit
- uriparser_boost::path(uri: Uri) : string()
Return the path of a URI.
- Arguments
uri : Uri implicit
- uriparser_boost::port(uri: Uri) : string()
Return the port of a URI.
- Arguments
uri : Uri implicit
- uriparser_boost::query(uri: Uri) : string()
Return the query of a URI.
- Arguments
uri : Uri implicit
- uriparser_boost::scheme(uri: Uri) : string()
Returns the scheme of a URI.
- Arguments
uri : Uri implicit
- uriparser_boost::user_info(uri: Uri) : string()
Return the user info of a URI.
- Arguments
uri : Uri implicit