It derives from <GObject>.
Sniffs the mime type of messages.
A ContentSniffer tries to detect the actual content type of the
files that are being downloaded by looking at some of the data before
the Message emits its "got-headers" signal.
ContentSniffer implements SessionFeature, so you can add
content sniffing to a session with Session.add_feature or
Session.add_feature_by_type.
Creates a new ContentSniffer.
Returned: a <SoupContentSniffer>.
a new <SoupContentSniffer>
Sniffs buffer to determine its Content-Type.
The result may also be influenced by the Content-Type declared in msg’s response headers.
Passed: a <SoupContentSniffer>.
Passed: a <SoupMessage>.
the message to sniff
Passed: a <GBytes>.
a buffer containing the start of msg’s response body
Returned: a string.
the sniffed Content-Type of buffer; this will never be #f,
but may be application/octet-stream.
Returned: a hash table, each key a string and each value a string, or
#f.
return location for Content-Type parameters (eg, "charset"), or
#f