---
title: "init(URL:MIMEType:expectedContentLength:textEncodingName:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/urlresponse/init(url:mimetype:expectedcontentlength:textencodingname:)-3n1n4"
---

# init(URL:MIMEType:expectedContentLength:textEncodingName:)

## Declaration

```swift
init(URL: URL, MIMEType: String?, expectedContentLength length: Int, textEncodingName name: String?)
```
