Marijn Huizendveld
Marijn Huizendveld

Reputation: 791

Parse HTTP Accept Header

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

Answers (1)

J Chris A
J Chris A

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

Related Questions