Method

SoupSessionsend_and_splice

Declaration [src]

gssize
soup_session_send_and_splice (
  SoupSession* session,
  SoupMessage* msg,
  GOutputStream* out_stream,
  GOutputStreamSpliceFlags flags,
  GCancellable* cancellable,
  GError** error
)

Description [src]

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

See soup_session_send() for more details on the general semantics.

Available since:3.4

Parameters

msg SoupMessage
 

A SoupMessage.

 The data is owned by the caller of the function.
out_stream GOutputStream
 

A GOutputStream.

 The data is owned by the caller of the function.
flags GOutputStreamSpliceFlags
 

A set of GOutputStreamSpliceFlags.

cancellable GCancellable
 

A GCancellable.

 The argument can be NULL.
 The data is owned by the caller of the function.
error GError **
  The return location for a GError*, or NULL.

Return value

Returns: gssize
 

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