Msg.InputStream

g GObject.GInterface GObject.GInterface Gio.Seekable Gio.Seekable GObject.GInterface->Gio.Seekable GObject.Object GObject.Object Gio.InputStream Gio.InputStream GObject.Object->Gio.InputStream Msg.InputStream Msg.InputStream Gio.InputStream->Msg.InputStream Gio.Seekable->Msg.InputStream

Subclasses:

None

Methods

Inherited:

Gio.InputStream (19), GObject.Object (37), Gio.Seekable (5)

Structs:

GObject.ObjectClass (5)

class

get_message (stream)

class

new (service, uri)

class

send_async (stream, io_priority, cancellable, callback, *user_data)

class

send_finish (stream, result)

Virtual Methods

Inherited:

Gio.InputStream (9), GObject.Object (7), Gio.Seekable (5)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

Gio.InputStream

r

Class Details

class Msg.InputStream(**kwargs)
Bases:

Gio.InputStream, Gio.Seekable

Abstract:

No

Structure:

Msg.InputStreamClass

classmethod get_message(stream)
Parameters:

stream (Gio.InputStream) – a Gio.InputStream

Returns:

a Soup.Message

Return type:

Soup.Message

Gets corresponding Soup.Message

classmethod new(service, uri)
Parameters:
Returns:

a new Gio.InputStream.

Return type:

Gio.InputStream

Prepares to send a GET request for uri on session, and returns a Gio.InputStream that can be used to read the response.

The request will not be sent until the first read call; if you need to look at the status code or response headers before reading the body, you can use msg_input_stream_send() or Msg.InputStream.send_async() to force the message to be sent and the response headers read.

classmethod send_async(stream, io_priority, cancellable, callback, *user_data)
Parameters:
classmethod send_finish(stream, result)
Parameters:
Raises:

GLib.Error

Return type:

bool