Content-type sniffing
Based on the rules in http://tools.ietf.org/html/draft-abarth-mime-sniff-06
This is used since we can't always trust Content-Type headers, and is based upon the HTML5 parsing rules.
This class can be overloaded with \SimplePie::set_content_type_sniffer_class()
package | SimplePie |
---|---|
subpackage | HTTP |
__construct(\SimplePie_Content_Type_Sniffer $file)
\SimplePie_Content_Type_Sniffer
Input file
feed_or_html() : string
string
Actual Content-Typeget_type() : string
string
Actual Content-Typeimage() : string
string
Actual Content-Typetext_or_binary() : string
string
Actual Content-Typeunknown() : string
string
Actual Content-Type$file : \SimplePie_File