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 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.
MultipartInputStream self()Returns `this`, for use in `with` statements.MultipartInputStreamGidBuilder builder()Get builder for [soup.multipart_input_stream.MultipartInputStream] Returns: New builder objectsoup.message.Message message() @propertyGet `message` property. Returns: The [soup.message.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.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].Fluent builder implementation template for soup.multipart_input_stream.MultipartInputStream
T message(soup.message.Message propval)Set `message` property. Params: propval = The [soup.message.Message]. Returns: Builder instance for fluent chainingFluent builder for soup.multipart_input_stream.MultipartInputStream
MultipartInputStream build()Create object from builder. Returns: New object