Sets our main struct and passes it to the parent class.
Creates a new #SoupContentSniffer.
Gets the number of bytes @sniffer needs in order to properly sniff a buffer.
Get the main Gtk struct
the main Gtk struct as a void*
Sniffs @buffer to determine its Content-Type. The result may also be influenced by the Content-Type declared in @msg's response headers.
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
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.
Tests if @feature has a "sub-feature" of type @type. See soup_session_feature_add_feature().
Removes the "sub-feature" of type @type from the base feature @feature. See soup_session_feature_add_feature().
A #SoupContentSniffer tries to detect the actual content type of the files that are being downloaded by looking at some of the data before the #SoupMessage emits its #SoupMessage::got-headers signal. #SoupContentSniffer implements #SoupSessionFeature, so you can add content sniffing to a session with soup_session_add_feature() or soup_session_add_feature_by_type().