public class HttpBodyKt
| Modifier and Type | Method and Description |
|---|---|
static boolean |
expectHttpBody(io.ktor.http.HttpMethod method,
long contentLength,
java.lang.CharSequence transferEncoding,
ConnectionOptions connectionOptions,
java.lang.CharSequence contentType) |
static boolean |
expectHttpBody(Request request) |
static boolean |
expectHttpUpgrade(io.ktor.http.HttpMethod method,
java.lang.CharSequence upgrade,
ConnectionOptions connectionOptions) |
static boolean |
expectHttpUpgrade(Request request) |
static java.lang.Object |
parseHttpBody(long contentLength,
java.lang.CharSequence transferEncoding,
ConnectionOptions connectionOptions,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel out,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Parse HTTP request or response body using contentLength, transferEncoding and connectionOptions
writing it to out. Usually doesn't fail but closing out channel with error.
|
static java.lang.Object |
parseHttpBody(HttpHeadersMap headers,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel out,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Parse HTTP request or response body using request/response's headers
writing it to out. Usually doesn't fail but closing out channel with error.
|
public static boolean expectHttpUpgrade(io.ktor.http.HttpMethod method,
java.lang.CharSequence upgrade,
ConnectionOptions connectionOptions)
true if an http upgrade is expected accoding to request method, upgrade header value and
parsed connectionOptionspublic static boolean expectHttpUpgrade(Request request)
true if an http upgrade is expected according to requestpublic static boolean expectHttpBody(io.ktor.http.HttpMethod method,
long contentLength,
java.lang.CharSequence transferEncoding,
ConnectionOptions connectionOptions,
java.lang.CharSequence contentType)
true if request or response with the specified parameters could have a bodypublic static boolean expectHttpBody(Request request)
true if request or response with the specified parameters could have a bodypublic static java.lang.Object parseHttpBody(long contentLength,
java.lang.CharSequence transferEncoding,
ConnectionOptions connectionOptions,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel out,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Parse HTTP request or response body using contentLength, transferEncoding and connectionOptions writing it to out. Usually doesn't fail but closing out channel with error.
public static java.lang.Object parseHttpBody(HttpHeadersMap headers, kotlinx.coroutines.io.ByteReadChannel input, kotlinx.coroutines.io.ByteWriteChannel out, kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Parse HTTP request or response body using request/response's headers writing it to out. Usually doesn't fail but closing out channel with error.