soup.multipart_input_stream

Module for [MultipartInputStream] class

Types 3

Handles streams of multipart messages.

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

Note that although #SoupMultipartInputStream is a [gio.input_stream.InputStream], you should not read directly from it, and the results are undefined if you do.

Methods
GType _gType() @property
MultipartInputStream self()Returns `this`, for use in `with` statements.
MultipartInputStreamGidBuilder builder()Get builder for [soup.multipartinputstream.MultipartInputStream] Returns: New builder object
soup.message.Message message() @propertyGet `message` property. Returns: The `class@Message`.
soup.message_headers.MessageHeaders getHeaders()Obtains the headers for the part currently being processed.
gio.input_stream.InputStream nextPart(gio.cancellable.Cancellable cancellable = null)Obtains an input stream for the next part.
void nextPartAsync(int ioPriority, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Obtains a [gio.input_stream.InputStream] for the next request.
gio.input_stream.InputStream nextPartFinish(gio.async_result.AsyncResult result)Finishes an asynchronous request for the next part.
Constructors
this(void * ptr, Flag!"Take" take)
this(soup.message.Message msg, gio.input_stream.InputStream baseStream)Creates a new #SoupMultipartInputStream that wraps the [gio.input_stream.InputStream] obtained by sending the `classMessage`.
Methods
T message(soup.message.Message propval)Set `message` property. Params: propval = The `class@Message`. Returns: Builder instance for fluent chaining

Fluent builder for [soup.multipart_input_stream.MultipartInputStream]