Given an accept header like text/html, application/json;q=0.9 it will parse it and return an array of object with the mime-type, subtype and params of each media type.
text/html, application/json;q=0.9
The Accept header value
An array of objects with the type, subtype and params of each media type
Given an accept header like
text/html, application/json;q=0.9
it will parse it and return an array of object with the mime-type, subtype and params of each media type.