Msg.InputStream¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
class |
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Msg.InputStream(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get_message(stream)¶
- Parameters:
stream (
Gio.InputStream
) – aGio.InputStream
- Returns:
- Return type:
Gets corresponding
Soup.Message
- classmethod new(service, uri)¶
- Parameters:
service (
Msg.Service
) – aMsg.Service
- Returns:
a new
Gio.InputStream
.- Return type:
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:
stream (
Gio.InputStream
) –io_priority (
int
) –cancellable (
Gio.Cancellable
orNone
) –callback (
Gio.AsyncReadyCallback
orNone
) –
- classmethod send_finish(stream, result)¶
- Parameters:
stream (
Gio.InputStream
) –result (
Gio.AsyncResult
) –
- Raises:
- Return type: