Session.stealConnection

"Steals" the HTTP connection associated with @msg from @session. This happens immediately, regardless of the current state of the connection, and @msg's callback will not be called. You can steal the connection from a #SoupMessage signal handler if you need to wait for part or all of the response to be received first.

Calling this function may cause @msg to be freed if you are not holding any other reference to it.

class Session
IOStream
stealConnection

Parameters

msg Message

the message whose connection is to be stolen

Return Value

Type: IOStream

the #GIOStream formerly associated with @msg (or %NULL if @msg was no longer associated with a connection). No guarantees are made about what kind of #GIOStream is returned.

Meta

Since

2.50