MultipartInputStream

class MultipartInputStream(pointer: <Error class: unknown class><<Error class: unknown class>>)

Handles streams of multipart messages.

This adds support for the multipart responses. For handling the multiple parts the user needs to wrap the class@Gio.InputStream obtained by sending the request with a class@MultipartInputStream and use method@MultipartInputStream.next_part before reading. Responses which are not wrapped will be treated like non-multipart responses.

Note that although #SoupMultipartInputStream is a class@Gio.InputStream, you should not read directly from it, and the results are undefined if you do.

Skipped during bindings generation

  • method message: Property has no getter nor setter

Constructors

Link copied to clipboard
constructor(msg: Message, baseStream: <Error class: unknown class>)

Creates a new #SoupMultipartInputStream that wraps the class@Gio.InputStream obtained by sending the class@Message.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val gioPollableInputStreamPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val soupMultipartInputStreamPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Obtains the headers for the part currently being processed.

Link copied to clipboard
fun nextPart(cancellable: <Error class: unknown class>? = null): <Error class: unknown class><<Error class: unknown class>?>

Obtains an input stream for the next part.

Link copied to clipboard
fun nextPartAsync(ioPriority: <Error class: unknown class>, cancellable: <Error class: unknown class>? = null, callback: <Error class: unknown class>?)

Obtains a class@Gio.InputStream for the next request.

Link copied to clipboard
fun nextPartFinish(result: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>?>

Finishes an asynchronous request for the next part.