• Parses the Content-Type header and also parses any parameters in the header.

    Parameters

    • input: string

      The Content-Type header string.

    Returns ContentType

    A ContentType object containing the value and optional parameters.

    BadRequestHttpError Thrown on invalid header syntax.