---
title: proxyType
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlprotectionspace/proxytype
---

# proxyType

The receiver’s proxy type.

## Declaration

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

## Discussion

Discussion This value is nil if the receiver does not represent a proxy protection space. The supported proxy types are listed in NSURLProtectionSpace proxy types.

## See Also

### Getting protection space properties

- [authenticationMethod](foundation/urlprotectionspace/authenticationmethod.md)
- [distinguishedNames](foundation/urlprotectionspace/distinguishednames.md)
- [host](foundation/urlprotectionspace/host.md)
- [port](foundation/urlprotectionspace/port.md)
- [protocol](foundation/urlprotectionspace/protocol.md)
- [realm](foundation/urlprotectionspace/realm.md)
- [receivesCredentialSecurely](foundation/urlprotectionspace/receivescredentialsecurely.md)
- [serverTrust](foundation/urlprotectionspace/servertrust.md)
