NSURLRequest+SRWebSocket.h 905 B

12345678910111213141516171819202122232425262728293031323334
  1. //
  2. // Copyright 2012 Square Inc.
  3. // Portions Copyright (c) 2016-present, Facebook, Inc.
  4. //
  5. // All rights reserved.
  6. //
  7. // This source code is licensed under the BSD-style license found in the
  8. // LICENSE file in the root directory of this source tree. An additional grant
  9. // of patent rights can be found in the PATENTS file in the same directory.
  10. //
  11. #import <Foundation/Foundation.h>
  12. NS_ASSUME_NONNULL_BEGIN
  13. @interface NSURLRequest (SRWebSocket)
  14. /**
  15. An array of pinned `SecCertificateRef` SSL certificates that `SRWebSocket` will use for validation.
  16. */
  17. @property (nullable, nonatomic, copy, readonly) NSArray *SR_SSLPinnedCertificates;
  18. @end
  19. @interface NSMutableURLRequest (SRWebSocket)
  20. /**
  21. An array of pinned `SecCertificateRef` SSL certificates that `SRWebSocket` will use for validation.
  22. */
  23. @property (nullable, nonatomic, copy) NSArray *SR_SSLPinnedCertificates;
  24. @end
  25. NS_ASSUME_NONNULL_END