request

abstract suspend fun <T> request(endpoint: NetworkEndpoint, body: Any?, bodyType: TypeInfo?, responseType: TypeInfo): T

Executes endpoint, optionally sending body (described by bodyType), and decodes the response into responseType.