Method
SoupContentSniffersniff
Declaration [src]
char*
soup_content_sniffer_sniff (
SoupContentSniffer* sniffer,
SoupMessage* msg,
GBytes* buffer,
GHashTable** params
)
Description [src]
Sniffs buffer to determine its Content-Type.
The result may also be influenced by the Content-Type declared in msg‘s
response headers.
Parameters
msg-
Type:
SoupMessageThe message to sniff.
The data is owned by the caller of the function. buffer-
Type:
GBytesA buffer containing the start of
msg‘s response body.The data is owned by the caller of the function. params-
Type:
GHashTableReturn location for Content-Type parameters (eg, “charset”), or
NULL.The argument will be set by the function. The argument can be set to NULLby the method.The instance takes ownership of the data, and is responsible for freeing it.