Files
expressjs.com/en/api/req-accepted.jade
TJ Holowaychuk 9e957d4e2c Initial commit
2012-07-31 20:33:12 -07:00

15 lines
357 B
Plaintext

section
h3(id='req.accepted') req.accepted
p.
Return an array of Accepted media types ordered from highest quality to lowest.
+js.
[ { value: 'application/json',
quality: 1,
type: 'application',
subtype: 'json' },
{ value: 'text/html',
quality: 0.5,
type: 'text',
subtype: 'html' } ]