soup.multipart_input_stream
Module for [MultipartInputStream] class
Types 3
classMultipartInputStream : gio.filter_input_stream.FilterInputStream, gio.pollable_input_stream.PollableInputStream
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 soup.multipart_input_stream.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
MultipartInputStreamGidBuilder builder() static nothrowGet builder for [soup.multipart_input_stream.MultipartInputStream] Returns: New builder objectsoup.message.Message message() @property nothrowGet `message` property. Returns: The [soup.message.Message].soup.message_headers.MessageHeaders getHeaders() nothrowObtains 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) nothrowObtains 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(soup.message.Message msg, gio.input_stream.InputStream baseStream)Creates a new #SoupMultipartInputStream that wraps the [gio.input_stream.InputStream] obtained by sending the [soup.message.Message].classMultipartInputStreamGidBuilderImpl(T) : gio.filter_input_stream.FilterInputStreamGidBuilderImpl!T, gio.pollable_input_stream.PollableInputStreamGidBuilderImpl!T
Fluent builder implementation template for soup.multipart_input_stream.MultipartInputStream
Methods
T message(soup.message.Message propval) nothrowSet `message` property. Params: propval = The [soup.message.Message]. Returns: Builder instance for fluent chaining