ktor-http-cio
Module Contents
alltypes
package io.ktor.http.cio
Module Contents
class CIOHeaders : Headers
class CIOMultipartDataBase : MultiPartData, CoroutineScope
class ConnectionOptions
typealias DecoderJob = WriterJob
typealias EncoderJob = ReaderJob
class HttpHeadersMap
abstract class HttpMessage : Closeable
val HttpPipelineCoroutine: CoroutineName
val HttpPipelineWriterCoroutine: CoroutineName
typealias HttpRequestHandler = suspend CoroutineScope.(request: Request, input: ByteReadChannel, output: ByteWriteChannel, upgraded: CompletableDeferred<Boolean>?) -> Unit
sealed class MultipartEvent
class ParserException : Exception
class Request : HttpMessage
val RequestHandlerCoroutine: CoroutineName
class RequestResponseBuilder
class Response : HttpMessage
suspend fun boundary(boundaryPrefixed: ByteBuffer, input: ByteReadChannel): Boolean
suspend fun copyMultipart(: HttpHeadersMap, : ByteReadChannel, : ByteWriteChannel): Unit
suspend fun decodeChunked(input: ByteReadChannel, out: ByteWriteChannel): Unit
fun HttpHeadersMap.dumpTo(: String, : Appendable): Unit
suspend fun encodeChunked(output: ByteWriteChannel, coroutineContext: <ERROR CLASS>): EncoderJob
suspend fun encodeChunked(output: ByteWriteChannel, input: ByteReadChannel): Unit
fun expectHttpBody(method: HttpMethod, contentLength: Long, transferEncoding: CharSequence?, connectionOptions: ConnectionOptions?, contentType: CharSequence?): Boolean
fun expectHttpBody(request: Request): Boolean
fun expectHttpUpgrade(method: HttpMethod, upgrade: CharSequence?, connectionOptions: ConnectionOptions?): Boolean
fun expectHttpUpgrade(request: Request): Boolean
fun expectMultipart(: HttpHeadersMap): Boolean
kotlinx.coroutines.CoroutineScope
fun lastHttpRequest(http11: Boolean, connectionOptions: ConnectionOptions?): Boolean
fun parseBoundary(contentType: CharSequence): ByteBuffer
suspend fun parseHeaders(: ByteReadChannel): HttpHeadersMap
suspend fun parseHttpBody(contentLength: Long, transferEncoding: CharSequence?, connectionOptions: ConnectionOptions?, input: ByteReadChannel, out: ByteWriteChannel): Unit
suspend fun parseHttpBody(headers: HttpHeadersMap, input: ByteReadChannel, out: ByteWriteChannel): Unit
fun parseMultipart(: <ERROR CLASS>, : ByteReadChannel, : HttpHeadersMap): ReceiveChannel<MultipartEvent>
fun parseMultipart(coroutineContext: <ERROR CLASS>, input: ByteReadChannel, contentType: CharSequence, contentLength: Long?): ReceiveChannel<MultipartEvent>
fun parseMultipart(coroutineContext: <ERROR CLASS>, boundaryPrefixed: ByteBuffer, input: ByteReadChannel, totalLength: Long?): ReceiveChannel<MultipartEvent>
suspend fun parsePart(boundaryPrefixed: ByteBuffer, input: ByteReadChannel, output: ByteWriteChannel, limit: Long = Long.MAX_VALUE): Pair<HttpHeadersMap, Long>
suspend fun parsePartBody(boundaryPrefixed: ByteBuffer, input: ByteReadChannel, output: ByteWriteChannel, headers: HttpHeadersMap, limit: Long = Long.MAX_VALUE): Long
suspend fun parsePartHeaders(: ByteReadChannel): HttpHeadersMap
suspend fun parsePreamble(boundaryPrefixed: ByteBuffer, input: ByteReadChannel, output: BytePacketBuilder, limit: Long = Long.MAX_VALUE): Long
suspend fun parseRequest(input: ByteReadChannel): Request?
suspend fun parseResponse(input: ByteReadChannel): Response?
fun startConnectionPipeline(input: ByteReadChannel, output: ByteWriteChannel, parentJob: <ERROR CLASS>?, ioContext: <ERROR CLASS>, callContext: <ERROR CLASS>, timeout: WeakTimeoutQueue, handler: HttpRequestHandler): Job
package io.ktor.http.cio.internals
package io.ktor.http.cio.websocket