buildURIWithQueryParameters

open fun buildURIWithQueryParameters(baseUri: String, parameters: Map<String, Any>): URI

Convenience method to construct a URL object from a base URL string and a Map of query string parameters.

Return

the fully populated URI

Parameters

baseUri

the scheme, hostname, and path portions of the URI to construct

parameters

the query string parameters to be included in the URI (will be URI encoded)

Throws

if the base URI is malformed