kinetex - v1.0.0-rc.1
    Preparing search index...

    Function parseContentType

    • Validate and parse a Content-Type header value. More secure against content-type sniffing attacks. Delegates to headers.ts for the actual parsing.

      Parameters

      • value: string

        The raw Content-Type header string.

      Returns ContentTypeInfo | null

      Parsed ContentTypeInfo, or null if invalid/empty/too long.