• 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.

    Parameters

    • header: string

      The Accept header value

    Returns { params: any; subtype: undefined | string; type: undefined | string }[]

    An array of objects with the type, subtype and params of each media type