Session.sendMessage

Synchronously send @msg. This call will not return until the transfer is finished successfully or there is an unrecoverable error.

Unlike with soup_session_queue_message(), @msg is not freed upon return.

(Note that if you call this method on a #SoupSessionAsync, it will still use asynchronous I/O internally, running the glib main loop to process the message, which may also cause other events to be processed.)

Contrast this method with soup_session_send(), which also synchronously sends a message, but returns before reading the response body, and allows you to read the response via a #GInputStream.

class Session
uint
sendMessage

Parameters

msg Message

the message to send

Return Value

Type: uint

the HTTP status code of the response

Meta