Stream

class Stream(val channel: ByteReadChannel, val contentType: ContentType) : InvocationInput(source)

Request body as a ByteReadChannel for incremental reads. Use this for large uploads (audio/video/large PDF) where allocating the full payload as a ByteArray is undesirable.

Constructors

Link copied to clipboard
constructor(channel: ByteReadChannel, contentType: ContentType)

Properties

Link copied to clipboard
Link copied to clipboard