RestClient

interface RestClient : Closeable

Minimalistic abstraction that should allow for different clients.

For now, the KtorRestClient is the only implementation.

Inheritors

Functions

Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
Link copied to clipboard
abstract suspend fun doRequest(pathComponents: List<String> = emptyList(), httpMethod: HttpMethod = HttpMethod.Post, parameters: Map<String, Any>? = null, payload: String? = null, contentType: ContentType = ContentType.Application.Json, headers: Map<String, Any>? = null): RestResponse
Link copied to clipboard
Link copied to clipboard
suspend fun RestClient.head(block: SearchAPIRequest.() -> Unit): RestResponse
Link copied to clipboard
abstract suspend fun nextNode(): Node
Link copied to clipboard
Link copied to clipboard