Session.sendAndSplice

Synchronously sends msg and splices the response body stream into out_stream.

See soup.session.Session.send for more details on the general semantics.

Parameters

msg soup.message.Message

a #SoupMessage

outStream gio.output_stream.OutputStream

a #GOutputStream

flags gio.types.OutputStreamSpliceFlags

a set of #GOutputStreamSpliceFlags

cancellable gio.cancellable.Cancellable

a #GCancellable

Return Value

Type: ptrdiff_t

a #gssize containing the size of the data spliced, or -1 if an error occurred.