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 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
MultipartInputStream self()Returns `this`, for use in `with` statements.MultipartInputStreamGidBuilder builder()Get builder for [soup.multipartinputstream.MultipartInputStream] Returns: New builder objectsoup.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(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`.classMultipartInputStreamGidBuilderImpl(T) : gio.filter_input_stream.FilterInputStreamGidBuilderImpl!T, gio.pollable_input_stream.PollableInputStreamGidBuilderImpl!T
Methods
T message(soup.message.Message propval)Set `message` property. Params: propval = The `class@Message`. Returns: Builder instance for fluent chainingclassMultipartInputStreamGidBuilder : MultipartInputStreamGidBuilderImpl!MultipartInputStreamGidBuilder
Fluent builder for [soup.multipart_input_stream.MultipartInputStream]
Methods