资 源 简 介
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. More information on the library can be found in the XML.com
article Just use Media Types?
Contents
| parse_mime_type() | Parses a mime-type into its component parts. |
|:--------------------|:----------------------------------------------|
| parse_media_range() | Media-ranges are mime-types with wild-cards and a "q" quality parameter. |
| quality() | Determines the quality ("q") of a mime-type when compared against a list of media-ranges. |
| quality_parsed() | Just like quality()