Files
Gustavo Noronha Silva 3c9f3cdffc Implement content sniffing
The implementation is based on the draft spec on Content-Type
Processing Model (draft-abarth-mime-sniff-01). It is a spinoff from
the HTML5 spec.

Soup now provides a SoupContentSniffer session feature, which hooks
into the message I/O, and delays emissions of the got-chunk signal to
be able to figure out the Content-Type of messages from the actual
content received, in some cases.

GIO is also used to sniff content, whenever the spec allows further
sniffing.

http://bugzilla.gnome.org/show_bug.cgi?id=572589
2009-07-02 11:03:11 -03:00

27 lines
760 B
XML

<?xml version="1.0"?>
<rss version="2.0">
<channel>
<title>A small RSS</title>
<link>http://libsoup.rocks/</link>
<language>en</language>
<description>A small RSS to test libsoup</description>
<item>
<title>One post too many</title>
<guid isPermaLink="true">http://libsoup.rocks/so/much/</guid>
<link>http://libsoup.rocks/so/much/</link>
<description>&lt;p&gt;woohoo&lt;/p&gt;</description>
<pubDate>Wed, 02 Jul 2009 10:26:28 +0000</pubDate>
</item>
<item>
<title>GCDS will rock</title>
<guid isPermaLink="true">http://libsoup.rocks/so/much/again/</guid>
<link>http://libsoup.rocks/so/much/again/</link>
<description>&lt;p&gt;I mean, really.&lt;/p&gt;</description>
<pubDate>Wed, 02 Jul 2009 10:26:28 +0000</pubDate>
</item>
</channel>
</rss>