---
title: networkServiceType
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsurlrequest/networkservicetype-swift.property
---

# networkServiceType

The network service type of the request.

## Declaration

```swift
var networkServiceType: NSURLRequest.NetworkServiceType { get }
```

## Discussion

Discussion The network service type provides a hint to the operating system about what the underlying traffic is used for. This hint enhances the system’s ability to prioritize traffic, determine how quickly it needs to wake up the cellular or Wi-Fi radio, and so on. By providing accurate information, you improve the ability of the system to optimally balance battery life, performance, and other considerations.

## See Also

### Related Documentation

- [networkServiceType](foundation/nsmutableurlrequest/networkservicetype.md)

### Accessing the service type

- [NSURLRequest.NetworkServiceType](foundation/nsurlrequest/networkservicetype-swift.enum.md)
