Reputation: 791
I would like to parse an HTTP Accept Header in javascript, is anyone aware of an existing component that does so?
Upvotes: 1
Views: 1171
Reputation: 1034
I wrote a standards based version of this in JavaScript, it is used by CouchDB, you can use it too:
http://code.google.com/p/mimeparse/source/browse/trunk/mimeparse.js
Upvotes: 1