Companion

object Companion

Opens readers.

Functions

Link copied to clipboard
suspend fun open(uri: String, client: HttpClient? = null, headers: Map<String, String> = emptyMap(), policy: HttpReaderPolicy = HttpReaderPolicy()): KtorMediaIo

Probes uri and returns a reader positioned at byte zero. The probe's own response body becomes the first stream, so a plain open costs exactly one request.