format
abstract suspend fun format( baseUrl: String, params: Map<String, String> = emptyMap(), forceFetchScalarToken: Boolean = false, bypassWhitelist: Boolean): String
Content copied to clipboard
Takes care of fetching a scalar token if required and build the final url. This methods can throw, you should take care of handling failure.
Parameters
base Url
the baseUrl which will be checked for scalar token
params
additional params you want to append to the base url.
force Fetch Scalar Token
if true, you will force to fetch a new scalar token from the server (only if the base url is whitelisted)
bypass Whitelist
if true, the base url will be considered as whitelisted