public class MultipartKt
| Modifier and Type | Method and Description |
|---|---|
static java.lang.Object |
boundary(java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
kotlin.coroutines.experimental.Continuation<? super java.lang.Boolean> p)
Skip multipart boundary
|
static java.lang.Object |
copyMultipart(HttpHeadersMap headers,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel out,
kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
Deprecated.
|
static boolean |
expectMultipart(HttpHeadersMap headers)
Check if we have multipart content
|
static java.nio.ByteBuffer |
parseBoundary(java.lang.CharSequence contentType)
Parse multipart boundary encoded in contentType header value
|
static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> |
parseMultipart(NonExistentClass coroutineContext,
kotlinx.coroutines.io.ByteReadChannel input,
HttpHeadersMap headers)
Deprecated.
|
static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> |
parseMultipart(kotlinx.coroutines.CoroutineScope $receiver,
kotlinx.coroutines.io.ByteReadChannel input,
HttpHeadersMap headers)
Starts a multipart parser coroutine producing multipart events
|
static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> |
parseMultipart(NonExistentClass coroutineContext,
kotlinx.coroutines.io.ByteReadChannel input,
java.lang.CharSequence contentType,
java.lang.Long contentLength)
Deprecated.
|
static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> |
parseMultipart(kotlinx.coroutines.CoroutineScope $receiver,
kotlinx.coroutines.io.ByteReadChannel input,
java.lang.CharSequence contentType,
java.lang.Long contentLength)
Starts a multipart parser coroutine producing multipart events
|
static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> |
parseMultipart(NonExistentClass coroutineContext,
java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
java.lang.Long totalLength)
Deprecated.
|
static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> |
parseMultipart(kotlinx.coroutines.CoroutineScope $receiver,
java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
java.lang.Long totalLength)
Starts a multipart parser coroutine producing multipart events
|
static java.lang.Object |
parsePart(java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel output,
long limit,
kotlin.coroutines.experimental.Continuation<? super kotlin.Pair<io.ktor.http.cio.HttpHeadersMap,java.lang.Long>> p)
Parse multipart part headers and body. Body bytes will be copied to output but up to limit bytes
|
static java.lang.Object |
parsePartBody(java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel output,
HttpHeadersMap headers,
long limit,
kotlin.coroutines.experimental.Continuation<? super java.lang.Long> p)
Parse multipart part body copying them to output channel but up to limit bytes
|
static java.lang.Object |
parsePartHeaders(kotlinx.coroutines.io.ByteReadChannel input,
kotlin.coroutines.experimental.Continuation<? super io.ktor.http.cio.HttpHeadersMap> p)
Parse multipart part headers
|
static java.lang.Object |
parsePreamble(java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.io.core.BytePacketBuilder output,
long limit,
kotlin.coroutines.experimental.Continuation<? super java.lang.Long> p)
Parse a multipart preamble
|
public static java.lang.Object copyMultipart(HttpHeadersMap headers, kotlinx.coroutines.io.ByteReadChannel input, kotlinx.coroutines.io.ByteWriteChannel out, kotlin.coroutines.experimental.Continuation<? super kotlin.Unit> p)
public static java.lang.Object parsePreamble(java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.io.core.BytePacketBuilder output,
long limit,
kotlin.coroutines.experimental.Continuation<? super java.lang.Long> p)
Parse a multipart preamble
public static java.lang.Object parsePart(java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel output,
long limit,
kotlin.coroutines.experimental.Continuation<? super kotlin.Pair<io.ktor.http.cio.HttpHeadersMap,java.lang.Long>> p)
Parse multipart part headers and body. Body bytes will be copied to output but up to limit bytes
public static java.lang.Object parsePartHeaders(kotlinx.coroutines.io.ByteReadChannel input,
kotlin.coroutines.experimental.Continuation<? super io.ktor.http.cio.HttpHeadersMap> p)
Parse multipart part headers
public static java.lang.Object parsePartBody(java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
kotlinx.coroutines.io.ByteWriteChannel output,
HttpHeadersMap headers,
long limit,
kotlin.coroutines.experimental.Continuation<? super java.lang.Long> p)
Parse multipart part body copying them to output channel but up to limit bytes
public static java.lang.Object boundary(java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
kotlin.coroutines.experimental.Continuation<? super java.lang.Boolean> p)
Skip multipart boundary
public static boolean expectMultipart(HttpHeadersMap headers)
Check if we have multipart content
public static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> parseMultipart(NonExistentClass coroutineContext,
kotlinx.coroutines.io.ByteReadChannel input,
HttpHeadersMap headers)
public static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> parseMultipart(kotlinx.coroutines.CoroutineScope $receiver,
kotlinx.coroutines.io.ByteReadChannel input,
HttpHeadersMap headers)
Starts a multipart parser coroutine producing multipart events
public static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> parseMultipart(NonExistentClass coroutineContext,
kotlinx.coroutines.io.ByteReadChannel input,
java.lang.CharSequence contentType,
java.lang.Long contentLength)
public static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> parseMultipart(kotlinx.coroutines.CoroutineScope $receiver,
kotlinx.coroutines.io.ByteReadChannel input,
java.lang.CharSequence contentType,
java.lang.Long contentLength)
Starts a multipart parser coroutine producing multipart events
public static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> parseMultipart(NonExistentClass coroutineContext,
java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
java.lang.Long totalLength)
public static kotlinx.coroutines.channels.ReceiveChannel<io.ktor.http.cio.MultipartEvent> parseMultipart(kotlinx.coroutines.CoroutineScope $receiver,
java.nio.ByteBuffer boundaryPrefixed,
kotlinx.coroutines.io.ByteReadChannel input,
java.lang.Long totalLength)
Starts a multipart parser coroutine producing multipart events
public static java.nio.ByteBuffer parseBoundary(java.lang.CharSequence contentType)
Parse multipart boundary encoded in contentType header value