OutputStreamContent
class OutputStreamContent(body: suspend OutputStream.() -> Unit, contentType: ContentType, status: HttpStatusCode?) : OutgoingContent.WriteChannelContent
Content copied to clipboard
OutgoingContent to respond with OutputStream. The stream would be automatically closed after body finish.
Constructors
Link copied to clipboard
fun OutputStreamContent(body: suspend OutputStream.() -> Unit, contentType: ContentType, status: HttpStatusCode? = null)
Content copied to clipboard
Functions
Link copied to clipboard
Gets an extension property for this content
Link copied to clipboard
Sets an extension property for this content
Link copied to clipboard
Receives channel provided by the engine and writes all data to it
Properties
Link copied to clipboard
Specifies ContentType for this resource.