Class

SoupContentSniffer

Description [src]

final class Soup.ContentSniffer : GObject.Object {
  /* No available fields */
}

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 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().

Ancestors

  • GObject

Implements

Constructors

soup_content_sniffer_new

Creates a new SoupContentSniffer.

Instance methods

soup_content_sniffer_sniff

Sniffs buffer to determine its Content-Type.

Class structure

struct SoupContentSnifferClass {
  GObjectClass parent_class;
  
}
Class members
parent_class
GObjectClass
  No description available.