Back to Expressjs

Req Accepted

_includes/api/en/3x/req-accepted.md

latest312 B
Original Source
<h3 id='req.accepted'>req.accepted</h3>

Return an array of Accepted media types ordered from highest quality to lowest.

[ { value: 'application/json',
    quality: 1,
    type: 'application',
    subtype: 'json' },
   { value: 'text/html',
     quality: 0.5,
     type: 'text',
     subtype: 'html' } ]