public static class OutgoingContent.ProtocolUpgrade
extends OutgoingContent
Variant of a class OutgoingContent
for upgrading an HTTP connection
class OutgoingContent
OutgoingContent.ByteArrayContent, OutgoingContent.NoContent, OutgoingContent.ProtocolUpgrade, OutgoingContent.ReadChannelContent, OutgoingContent.WriteChannelContent
Constructor and Description |
---|
ProtocolUpgrade()
Variant of a
class OutgoingContent for upgrading an HTTP connection |
Modifier and Type | Method and Description |
---|---|
HttpStatusCode |
getStatus()
Status code to set when sending this content
|
java.lang.Object |
upgrade(kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel output,
NonExistentClass engineContext,
NonExistentClass userContext,
kotlin.coroutines.experimental.Continuation<? super kotlinx.coroutines.Job> p)
Upgrades an HTTP connection
|
getContentLength, getContentType, getHeaders, getProperty, getStatus, setProperty
public ProtocolUpgrade()
Variant of a class OutgoingContent
for upgrading an HTTP connection
class OutgoingContent
public HttpStatusCode getStatus()
Status code to set when sending this content
public java.lang.Object upgrade(kotlinx.coroutines.io.ByteReadChannel input, kotlinx.coroutines.io.ByteWriteChannel output, NonExistentClass engineContext, NonExistentClass userContext, kotlin.coroutines.experimental.Continuation<? super kotlinx.coroutines.Job> p)
Upgrades an HTTP connection
input
- is a ByteReadChannel for an upgraded connectionoutput
- is a ByteWriteChannel for an upgraded connectionengineContext
- is a CoroutineContext to execute non-blocking code, such as parsing or processinguserContext
- is a CoroutineContext to execute user-provided callbacks or code potentially blocking