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

# NSURLProtectionSpace protocol types

These constants describe the supported protocols for a protection space, as returned by [`protocol`](/documentation/Foundation/URLProtectionSpace/protocol).

## Topics

### Protocol types

[`let NSURLProtectionSpaceHTTP: String`](/documentation/Foundation/NSURLProtectionSpaceHTTP)

The protocol type for HTTP.

[`let NSURLProtectionSpaceHTTPS: String`](/documentation/Foundation/NSURLProtectionSpaceHTTPS)

The protocol type for HTTPS.

[`let NSURLProtectionSpaceFTP: String`](/documentation/Foundation/NSURLProtectionSpaceFTP)

The protocol type for FTP.



---

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)