Remix Utils - v9.0.0
    Preparing search index...
    • 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