KoryHttpClient
class KoryHttpClient
HTTP client wrapper for Kory, providing POST, GET, and streaming POST methods.
Create instances via KoryHttpClient.create with a KoryHttpClientConfig. The engine is discovered automatically from the classpath (e.g. via kory-ktor-cio) or can be specified explicitly in the config.
Samples
examples.koryFunctions
Link copied to clipboard
Link copied to clipboard
Sends a POST request with a string body.
Link copied to clipboard
suspend fun postMultipart(path: String, parts: List<KoryFormDataPart>, onProgress: (Float) -> Unit? = null): KoryHttpResponse
Link copied to clipboard
Link copied to clipboard
Sends a streaming POST request, emitting response lines as they arrive.