---
title: new()
framework: foundation
role: symbol
role_heading: Type Method
path: foundation/urlsession/new()
---

# new()

## Declaration

```swift
class func new() -> Self
```

## See Also

### Deprecated

- [init()](foundation/urlsession/init().md)
