Contents

mimeType

The MIME type of the response.

Declaration

var mimeType: String? { get }

Discussion

The MIME type is often provided by the response’s originating source. However, that value may be changed or corrected by a protocol implementation if it can be determined that the response’s source reported the information incorrectly.

If the response’s originating source does not provide a MIME type, an attempt to guess the MIME type may be made.

See Also

Getting the response properties