SessionFeatureT

#SoupSessionFeature is the interface used by classes that extend the functionality of a #SoupSession. Some features like HTTP authentication handling are implemented internally via #SoupSessionFeature<!-- -->s. Other features can be added to the session by the application. (Eg, #SoupLogger, #SoupCookieJar.)

See soup_session_add_feature(), etc, to add a feature to a session.

Members

Functions

addFeature
bool addFeature(GType type)

Adds a "sub-feature" of type @type to the base feature @feature. This is used for features that can be extended with multiple different types. Eg, the authentication manager can be extended with subtypes of #SoupAuth.

attach
void attach(Session session)
detach
void detach(Session session)
getSessionFeatureStruct
SoupSessionFeature* getSessionFeatureStruct(bool transferOwnership)

Get the main Gtk struct

hasFeature
bool hasFeature(GType type)

Tests if @feature has a "sub-feature" of type @type. See soup_session_feature_add_feature().

removeFeature
bool removeFeature(GType type)

Removes the "sub-feature" of type @type from the base feature @feature. See soup_session_feature_add_feature().

Meta

Since

2.24