mikeal/request — Issue #143: Helper method for parsing the date fields in HTTP response header
Author: matt-hickford
Created: 2011-12-27 15:28:21+00:00
State: open

Hi. The object `response.header` looks like this

{ 'content-type': 'application/json; charset=UTF-8',
'last-modified': 'Tue, 27 Dec 2011 07:37:03 GMT',

The last-modified field is a string representing a date and time in a format defined in [RFC 2822](http://tools.ietf.org/html/rfc2822#section-3.3). Alas, [JavaScript's date object](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Date) and methods are too weak to parse it. It would be extremely helpful to offer a capable helper method to parse this string to Javascript Date object.