disable_feature


Description:

public void disable_feature (Type feature_type)

Disables the actions of [iface@SessionFeature]s with the given feature_type (or a subclass of that type) on this.

this is processed as though the feature(s) hadn't been added to the session. Eg, passing SOUP_TYPE_CONTENT_SNIFFER for feature_type will disable Content-Type sniffing on the message.

You must call this before queueing this on a session; calling it on a message that has already been queued is undefined. In particular, you cannot call this on a message that is being requeued after a redirect or authentication.

Parameters:

this

a Message

feature_type

the Type of a SessionFeature




2022 vala-language.org