SessionFeature

class SessionFeature(*args, **kwargs)

Implementations: AuthManager, Cache, ContentDecoder, ContentSniffer, CookieJar, CookieJarDB, CookieJarText, HSTSEnforcer, HSTSEnforcerDB, Logger, WebsocketExtensionManager

Interface for miscellaneous Session features.

SessionFeature is the interface used by classes that extend the functionality of a Session. Some features like HTTP authentication handling are implemented internally via SoupSessionFeature’s. Other features can be added to the session by the application. (Eg, Logger, CookieJar.)

See add_feature, etc, to add a feature to a session.