request
internal suspend fun HttpClient.request(coroutineDispatcher: CoroutineDispatcher = Dispatchers.IO, originalRoute: OriginalRoute, preConfiguredQueries: Map<String, String>, preConfiguredHeaders: Map<String, String>, preConfiguredBody: JsonObject?): OriginalResponse
Extension function to make a request to the API.
Return
The response from the API.
Parameters
originalRoute
The route to make the request to.
preConfiguredQueries
The queries to pass to the API.
preConfiguredHeaders
The headers to pass to the API.
preConfiguredBody
The body to pass to the API.
Throws
If the base URL does not start with "https://".