commit | 0aea125960e04fa2e13260250ee78dc4dbb1df95 | [log] [tgz] |
---|---|---|
author | Natalie Weizenbaum <nweiz@google.com> | Mon Oct 19 21:42:54 2015 |
committer | Natalie Weizenbaum <nweiz@google.com> | Mon Oct 19 21:42:54 2015 |
tree | 888299a470c34313ab72ec3d08dd435a0c38813a | |
parent | ca0275638661d5c8551ff8b0e7cf53d68e88298e [diff] |
Make MediaType case-insensitive, following the spec. R=kevmoo@google.com Review URL: https://codereview.chromium.org//1419493002 .
http_parser
is a platform-independent package for parsing and serializing various HTTP-related formats. It's designed to be usable on both the browser and the server, and thus avoids referencing any types from dart:io
or dart:html
. It includes:
Support for parsing and formatting dates according to HTTP/1.1, the HTTP/1.1 standard.
A MediaType
class that represents an HTTP media type, as used in Accept
and Content-Type
headers. This class supports both parsing and formatting media types according to HTTP/1.1.
A CompatibleWebSocket
class that supports both the client and server sides of the WebSocket protocol independently of any specific server implementation.