Content-Length: 288628 | pFad | http://github.com/jdcasey/mimeparse

FC GitHub - jdcasey/mimeparse: Fork of http://code.google.com/p/mimeparse/
Skip to content

jdcasey/mimeparse

Repository files navigation

This module provides basic functions for parsing mime-type names and matching them against a list of media-ranges.

See section 14.1 of RFC 2616 (the HTTP specification) for a complete explanation.

Testing
=======
The format of the JSON test data file is as follows:
A top-level JSON object which has a key for each of the functions to be tested. The value corresponding to that key is a list of tests. Each test contains: the argument or arguments to the function being tested, the expected results and an optional description.


Python
======
The Python tests require either Python 2.6 or the installation of the SimpleJSON library.

Installing SimpleJson can be done by:
sudo easy_install simplejson

Run the tests by typing:
python mimeparse_test.py








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/jdcasey/mimeparse

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy