4.6. 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.6.1. Split and compose
- 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
- 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_split_full_path(uri: Uri): array<string>
Split the full path of a URI into its components.
- Arguments:
uri : Uri implicit
4.6.2. Component accessors
- fragment(uri: Uri): string
Return the fragment of a URI.
- Arguments:
uri : Uri implicit
- host(uri: Uri): string
Return the host of a URI.
- Arguments:
uri : Uri implicit
- path(uri: Uri): string
Return the path of a URI.
- Arguments:
uri : Uri implicit
- port(uri: Uri): string
Return the port of a URI.
- Arguments:
uri : Uri implicit
- query(uri: Uri): string
Return the query of a URI.
- Arguments:
uri : Uri implicit
- scheme(uri: Uri): string
Returns the scheme of a URI.
- Arguments:
uri : Uri implicit
- user_info(uri: Uri): string
Return the user info of a URI.
- Arguments:
uri : Uri implicit