canHandle
TypeScriptstatic canHandle(request: URLRequest): booleanSwift declarationclass func canHandle(_ request: URLRequest) -> Boolclass · iOS 2.0+ · SDK 27.1
class NSURLConnectionstatic canHandle(request: URLRequest): booleanSwift declarationclass func canHandle(_ request: URLRequest) -> Boolstatic sendAsynchronousRequest(request: URLRequest, queue: OperationQueue, handler: ((arg0: (URLResponse) | null, arg1: (ArrayBuffer) | null, arg2: (NativeError) | null) => void)): voidSwift declarationclass func sendAsynchronousRequest(_ request: URLRequest, queue: OperationQueue, completionHandler handler: @escaping @Sendable (URLResponse?, Data?, (any Error)?) -> Void)static sendSynchronousRequest(request: URLRequest): { $ret: ArrayBuffer; $out: { "response": (URLResponse) | null } }Swift declarationclass func sendSynchronousRequest(_ request: URLRequest, returning response: AutoreleasingUnsafeMutablePointer<URLResponse?>?) throws -> DataOmit the output parameters from the call. The result contains $ret and $out, with response inside $out.
cancel(): voidSwift declarationfunc cancel()static initRequestDelegate(request: URLRequest, delegate?: (unknown) | null): (NSURLConnection) | nullSwift declarationinit?(request: URLRequest, delegate: Any?)static initRequestDelegateStartImmediately(request: URLRequest, delegate: (unknown) | null, startImmediately: boolean): (NSURLConnection) | nullSwift declarationinit?(request: URLRequest, delegate: Any?, startImmediately: Bool)schedule(aRunLoop: RunLoop, mode: RunLoop_Mode): voidSwift declarationfunc schedule(in aRunLoop: RunLoop, forMode mode: RunLoop.Mode)setDelegateQueue(queue?: (OperationQueue) | null): voidSwift declarationfunc setDelegateQueue(_ queue: OperationQueue?)start(): voidSwift declarationfunc start()unschedule(aRunLoop: RunLoop, mode: RunLoop_Mode): voidSwift declarationfunc unschedule(from aRunLoop: RunLoop, forMode mode: RunLoop.Mode)get currentRequest(): URLRequestSwift declarationvar currentRequest: URLRequest { get }get originalRequest(): URLRequestSwift declarationvar originalRequest: URLRequest { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
NSURLConnection.init()
inherited init: cannot prove legal (class declares 2 custom initializers)