Session.getFeatureForMessage

Gets the first feature in @session of type @feature_type, provided that it is not disabled for @msg. As with soup_session_get_feature(), this should only be used for features where @feature_type is only expected to match a single feature. In particular, if there are two matching features, and the first is disabled on @msg, and the second is not, then this will return %NULL, not the second feature.

class Session
getFeatureForMessage

Parameters

featureType GType

the #GType of the feature to get

msg Message

a #SoupMessage

Return Value

a #SoupSessionFeature, or %NULL. The feature is owned by @session.

Meta

Since

2.28