public class PipelineKt
| Modifier and Type | Method and Description |
|---|---|
static kotlinx.coroutines.CoroutineName |
getHttpPipelineCoroutine()
HTTP pipeline coroutine name
|
static kotlinx.coroutines.CoroutineName |
getHttpPipelineWriterCoroutine()
HTTP pipeline writer coroutine name
|
static kotlinx.coroutines.CoroutineName |
getRequestHandlerCoroutine()
HTTP request handler coroutine name
|
static boolean |
lastHttpRequest(boolean http11,
ConnectionOptions connectionOptions)
Deprecated.
|
static kotlinx.coroutines.Job |
startConnectionPipeline(kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel output,
NonExistentClass parentJob,
NonExistentClass ioContext,
NonExistentClass callContext,
WeakTimeoutQueue timeout,
kotlin.jvm.functions.Function6<? super kotlinx.coroutines.CoroutineScope,? super io.ktor.http.cio.Request,? super kotlinx.coroutines.io.ByteReadChannel,? super kotlinx.coroutines.io.ByteWriteChannel,? super kotlinx.coroutines.CompletableDeferred<java.lang.Boolean>,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> handler)
Deprecated.
|
static kotlinx.coroutines.Job |
startConnectionPipeline(kotlinx.coroutines.CoroutineScope $receiver,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel output,
WeakTimeoutQueue timeout,
kotlin.jvm.functions.Function6<? super kotlinx.coroutines.CoroutineScope,? super io.ktor.http.cio.Request,? super kotlinx.coroutines.io.ByteReadChannel,? super kotlinx.coroutines.io.ByteWriteChannel,? super kotlinx.coroutines.CompletableDeferred<java.lang.Boolean>,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> handler)
Start connection HTTP pipeline invoking handler for every request.
Note that handler could be invoked multiple times concurrently due to HTTP pipeline nature
|
public static boolean lastHttpRequest(boolean http11,
ConnectionOptions connectionOptions)
public static kotlinx.coroutines.CoroutineName getHttpPipelineCoroutine()
HTTP pipeline coroutine name
public static kotlinx.coroutines.CoroutineName getHttpPipelineWriterCoroutine()
HTTP pipeline writer coroutine name
public static kotlinx.coroutines.CoroutineName getRequestHandlerCoroutine()
HTTP request handler coroutine name
public static kotlinx.coroutines.Job startConnectionPipeline(kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel output,
NonExistentClass parentJob,
NonExistentClass ioContext,
NonExistentClass callContext,
WeakTimeoutQueue timeout,
kotlin.jvm.functions.Function6<? super kotlinx.coroutines.CoroutineScope,? super io.ktor.http.cio.Request,? super kotlinx.coroutines.io.ByteReadChannel,? super kotlinx.coroutines.io.ByteWriteChannel,? super kotlinx.coroutines.CompletableDeferred<java.lang.Boolean>,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> handler)
public static kotlinx.coroutines.Job startConnectionPipeline(kotlinx.coroutines.CoroutineScope $receiver,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel output,
WeakTimeoutQueue timeout,
kotlin.jvm.functions.Function6<? super kotlinx.coroutines.CoroutineScope,? super io.ktor.http.cio.Request,? super kotlinx.coroutines.io.ByteReadChannel,? super kotlinx.coroutines.io.ByteWriteChannel,? super kotlinx.coroutines.CompletableDeferred<java.lang.Boolean>,? super kotlin.coroutines.experimental.Continuation<? super kotlin.Unit>,? extends java.lang.Object> handler)
Start connection HTTP pipeline invoking handler for every request. Note that handler could be invoked multiple times concurrently due to HTTP pipeline nature
input - incoming channeloutput - outgoing bytes channeltimeout - number of IDLE seconds after the connection will be closedhandler - to be invoked for every incoming request