canInit
TypeScriptstatic canInitWith(request: URLRequest): booleanSwift declarationclass func canInit(with request: URLRequest) -> Boolclass · iOS 2.0+ · SDK 27.1
class URLProtocolstatic canInitWith(request: URLRequest): booleanSwift declarationclass func canInit(with request: URLRequest) -> Boolstatic canInitWith33811(task: URLSessionTask): booleanSwift declarationclass func canInit(with task: URLSessionTask) -> Boolstatic canonicalRequest(request: URLRequest): URLRequestSwift declarationclass func canonicalRequest(for request: URLRequest) -> URLRequeststatic property(key: string, request: URLRequest): (unknown) | nullSwift declarationclass func property(forKey key: String, in request: URLRequest) -> Any?static registerClass(protocolClass: string): booleanSwift declarationclass func registerClass(_ protocolClass: AnyClass) -> Boolstatic removeProperty(key: string, request: NSMutableURLRequest): voidSwift declarationclass func removeProperty(forKey key: String, in request: NSMutableURLRequest)static requestIsCacheEquivalent(a: URLRequest, b: URLRequest): booleanSwift declarationclass func requestIsCacheEquivalent(_ a: URLRequest, to b: URLRequest) -> Boolstatic setProperty(value: unknown, key: string, request: NSMutableURLRequest): voidSwift declarationclass func setProperty(_ value: Any, forKey key: String, in request: NSMutableURLRequest)static unregisterClass(protocolClass: string): voidSwift declarationclass func unregisterClass(_ protocolClass: AnyClass)static initRequestCachedResponseClient(request: URLRequest, cachedResponse?: (CachedURLResponse) | null, client?: (Implements<URLProtocolClient> | SDKHandle) | null): URLProtocolSwift declarationinit(request: URLRequest, cachedResponse: CachedURLResponse?, client: (any URLProtocolClient)?)static initTaskCachedResponseClient(task: URLSessionTask, cachedResponse?: (CachedURLResponse) | null, client?: (Implements<URLProtocolClient> | SDKHandle) | null): URLProtocolSwift declarationconvenience init(task: URLSessionTask, cachedResponse: CachedURLResponse?, client: (any URLProtocolClient)?)startLoading(): voidSwift declarationfunc startLoading()stopLoading(): voidSwift declarationfunc stopLoading()get cachedResponse(): (CachedURLResponse) | nullSwift declaration@NSCopying var cachedResponse: CachedURLResponse? { get }get client(): (SDKHandle) | nullSwift declarationvar client: (any URLProtocolClient)? { get }get request(): URLRequestSwift declarationvar request: URLRequest { get }get task(): (URLSessionTask) | nullSwift declaration@NSCopying var task: URLSessionTask? { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
URLProtocol.init()
inherited init: cannot prove legal (class declares 2 custom initializers)