format

abstract suspend fun format(    baseUrl: String,     params: Map<String, String> = emptyMap(),     forceFetchScalarToken: Boolean = false,     bypassWhitelist: Boolean): String

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

baseUrl

the baseUrl which will be checked for scalar token

params

additional params you want to append to the base url.

forceFetchScalarToken

if true, you will force to fetch a new scalar token from the server (only if the base url is whitelisted)

bypassWhitelist

if true, the base url will be considered as whitelisted