One Logo Pool Ball
Foundation · IOS API REFERENCE

NSURLConnection

class · iOS 2.0+ · SDK 27.1

class NSURLConnection

Members (12)

static · iOS 2.0+

canHandle

TypeScript
static canHandle(request: URLRequest): boolean
Swift declaration
class func canHandle(_ request: URLRequest) -> Bool
static · iOS 5.0+ · Deprecated in iOS 9.0

sendAsynchronousRequest

TypeScript
static sendAsynchronousRequest(request: URLRequest, queue: OperationQueue, handler: ((arg0: (URLResponse) | null, arg1: (ArrayBuffer) | null, arg2: (NativeError) | null) => void)): void
Swift declaration
class func sendAsynchronousRequest(_ request: URLRequest, queue: OperationQueue, completionHandler handler: @escaping @Sendable (URLResponse?, Data?, (any Error)?) -> Void)
static · iOS 2.0+ · Deprecated in iOS 9.0

sendSynchronousRequest

TypeScript
static sendSynchronousRequest(request: URLRequest): { $ret: ArrayBuffer; $out: { "response": (URLResponse) | null } }
Swift declaration
class func sendSynchronousRequest(_ request: URLRequest, returning response: AutoreleasingUnsafeMutablePointer<URLResponse?>?) throws -> Data

Omit the output parameters from the call. The result contains $ret and $out, with response inside $out.

method · iOS 2.0+

cancel

TypeScript
cancel(): void
Swift declaration
func cancel()
init · iOS 2.0+ · Deprecated in iOS 9.0

init

TypeScript
static initRequestDelegate(request: URLRequest, delegate?: (unknown) | null): (NSURLConnection) | null
Swift declaration
init?(request: URLRequest, delegate: Any?)
init · iOS 2.0+ · Deprecated in iOS 9.0

init

TypeScript
static initRequestDelegateStartImmediately(request: URLRequest, delegate: (unknown) | null, startImmediately: boolean): (NSURLConnection) | null
Swift declaration
init?(request: URLRequest, delegate: Any?, startImmediately: Bool)
method · iOS 2.0+

schedule

TypeScript
schedule(aRunLoop: RunLoop, mode: RunLoop_Mode): void
Swift declaration
func schedule(in aRunLoop: RunLoop, forMode mode: RunLoop.Mode)
method · iOS 5.0+

setDelegateQueue

TypeScript
setDelegateQueue(queue?: (OperationQueue) | null): void
Swift declaration
func setDelegateQueue(_ queue: OperationQueue?)
method · iOS 2.0+

start

TypeScript
start(): void
Swift declaration
func start()
method · iOS 2.0+

unschedule

TypeScript
unschedule(aRunLoop: RunLoop, mode: RunLoop_Mode): void
Swift declaration
func unschedule(from aRunLoop: RunLoop, forMode mode: RunLoop.Mode)
get · iOS 5.0+

currentRequest

TypeScript
get currentRequest(): URLRequest
Swift declaration
var currentRequest: URLRequest { get }
get · iOS 5.0+

originalRequest

TypeScript
get originalRequest(): URLRequest
Swift declaration
var originalRequest: URLRequest { get }

Skipped declarations

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)

All Foundation types →