GObject ╰── SoupContentSniffer
SoupContentSniffer implements SoupSessionFeature and SoupContentProcessor.
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 “got-headers” signal.
SoupContentSniffer implements SoupSessionFeature, so you can add
content sniffing to a session with
SoupContentSniffer * soup_content_sniffer_new (
Creates a new SoupContentSniffer.
a new SoupContentSniffer
char * soup_content_sniffer_sniff (
to determine its Content-Type. The result may also
be influenced by the Content-Type declared in
the sniffed Content-Type of
; this will never be
but may be "application/octet-stream".