<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/nsurlprotectionspace-proxy-types",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "NSURLProtectionSpace proxy types"
}
-->

# NSURLProtectionSpace proxy types

These constants describe the supported proxy types used in [`init(proxyHost:port:type:realm:authenticationMethod:)`](/documentation/Foundation/URLProtectionSpace/init(proxyHost:port:type:realm:authenticationMethod:)) and returned by [`proxyType`](/documentation/Foundation/URLProtectionSpace/proxyType).

## Topics

### Proxy types

[`NSURLProtectionSpaceHTTPProxy`](/documentation/Foundation/NSURLProtectionSpaceHTTPProxy)

The proxy type for HTTP proxies.

[`NSURLProtectionSpaceHTTPSProxy`](/documentation/Foundation/NSURLProtectionSpaceHTTPSProxy)

The proxy type for HTTPS proxies.

[`NSURLProtectionSpaceFTPProxy`](/documentation/Foundation/NSURLProtectionSpaceFTPProxy)

The proxy type for FTP proxies.

[`NSURLProtectionSpaceSOCKSProxy`](/documentation/Foundation/NSURLProtectionSpaceSOCKSProxy)

The proxy type for SOCKS proxies.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)