Class ContentSniffer

java.lang.Object
All Implemented Interfaces:
Proxy, SessionFeature

@Generated("io.github.jwharm.JavaGI") public final class ContentSniffer extends GObject implements SessionFeature
Sniffs the mime type of messages.

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 Message emits its Message::got-headers signal. SoupContentSniffer implements SessionFeature, so you can add content sniffing to a session with Session.addFeature(org.gnome.soup.SessionFeature) or Session.addFeatureByType(org.gnome.glib.Type).