-
- All Implemented Interfaces:
public final class KtorOutgoingContent extends OutgoingContent.WriteChannelContentA class to write streaming content to a Ktor OutgoingContent.
-
-
Field Summary
Fields Modifier and Type Field Description private final ContentTypecontentTypeprivate final HttpStatusCodestatusprivate final LongcontentLengthprivate final Headersheaders
-
Constructor Summary
Constructors Constructor Description KtorOutgoingContent(ContentType contentType, HttpStatusCode status, Long contentLength, SuspendFunction1<ByteWriteChannel, Unit> block)
-
Method Summary
Modifier and Type Method Description ContentTypegetContentType()HttpStatusCodegetStatus()LonggetContentLength()UnitwriteTo(ByteWriteChannel channel)-
-
Constructor Detail
-
KtorOutgoingContent
KtorOutgoingContent(ContentType contentType, HttpStatusCode status, Long contentLength, SuspendFunction1<ByteWriteChannel, Unit> block)
-
-
Method Detail
-
getContentType
ContentType getContentType()
-
getStatus
HttpStatusCode getStatus()
-
getContentLength
Long getContentLength()
-
-
-
-