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

36 lines
1.5 KiB
XML

<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:planet="http://planet.libsouprocks.net/" xmlns:indexing="urn:atom-extension:indexing" indexing:index="no"><access:restriction xmlns:access="http://www.bloglines.com/about/specs/fac-1.0" relationship="deny"/>
<title>A small ATOM feed</title>
<updated>2009-07-02T10:27:44Z</updated>
<generator>kov</generator>
<author>
<name>Anonymous Coward</name>
</author>
<id>http://libsoup.rocks/atom.xml</id>
<link href="http://libsoup.rocks/atom.xml" rel="self" type="application/atom+xml"/>
<link href="http://libsoup.rocks/" rel="alternate"/>
<entry xml:lang="en">
<id>http://libsoup.rocks/so/much/</id>
<link href="http://libsoup.rocks/so/much/" rel="alternate" type="text/html"/>
<title>One post too many</title>
<summary>woo [...]</summary>
<content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml"><p>woohoo</p></div>
</content>
<updated>2009-07-02T10:38:28Z</updated>
<category term="Category1"/>
<category term="Personal"/>
<author>
<name>kov</name>
</author>
<source>
<id>http://libsoup.rocks/blog</id>
<link href="http://libsoup.rocks/blog/feed" rel="self" type="application/atom+xml"/>
<link href="http://libsoup.rocks/blog" rel="alternate" type="text/html"/>
<subtitle>Just stuff to test libsoup</subtitle>
<title>Random stuff to test libsoup</title>
<updated>2009-07-02T00:38:29Z</updated>
</source>
</entry>
</feed>