Gsf.InputHTTP

g GObject.Object GObject.Object Gsf.Input Gsf.Input GObject.Object->Gsf.Input Gsf.InputHTTP Gsf.InputHTTP Gsf.Input->Gsf.InputHTTP

Subclasses:

None

Methods

Inherited:

Gsf.Input (24), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new (url)

get_content_type ()

get_url ()

Virtual Methods

Inherited:

Gsf.Input (3), GObject.Object (7)

Properties

Inherited:

Gsf.Input (7)

Name

Type

Flags

Short Description

content-type

str

r/w/co

Content-Type in HTTP header

url

str

r/w/co

HTTP URL accessed by this stream

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Gsf.InputHTTP(**kwargs)
Bases:

Gsf.Input

Abstract:

No

classmethod new(url)
Parameters:

url (str) – A string containing the URL to retrieve

Raises:

GLib.Error

Returns:

an open HTTP connection, ready for reading.

Return type:

Gsf.Input

get_content_type()
Returns:

an allocated string containing the Content-Type field of the HTTP response.

Return type:

str

get_url()
Returns:

an allocated string containing the URL used for input.

Return type:

str

Property Details

Gsf.InputHTTP.props.content_type
Name:

content-type

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Content-Type in HTTP header

Gsf.InputHTTP.props.url
Name:

url

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

HTTP URL accessed by this stream