get

suspend fun get(path: String, params: Map<String, Any?> = emptyMap()): KoryHttpResponse

Sends a GET request.

Return

A KoryHttpResponse with status and body.

Parameters

path

The URL path (appended to the base URL).

Throws

if the response status is not 2xx.

if the request times out.

if a network error occurs.