---
title: mimeType
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlresponse/mimetype
---

# mimeType

The MIME type of the response.

## Declaration

```swift
var mimeType: String? { get }
```

## Discussion

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

- [expectedContentLength](foundation/urlresponse/expectedcontentlength.md)
- [suggestedFilename](foundation/urlresponse/suggestedfilename.md)
- [textEncodingName](foundation/urlresponse/textencodingname.md)
- [url](foundation/urlresponse/url.md)
