extractContentTypeIfPresent(in:)

    Returns the MIME type from the content-type header, if present.

    Converter+Common.swift:25

    This declaration is gated by at least one @_spi attribute.

    func extractContentTypeIfPresent(in headerFields: HTTPFields) -> OpenAPIMIMEType?

    Parameters

    headerFields

    The header fields to inspect for the content type header.

    Returns

    The content type value, or nil if not found or invalid.

    Other members in extension

    Type members

    Show system interfaces (1)

    Hide system interfaces

    Instance members

    Show system interfaces (44)

    Hide system interfaces