One Logo Pool Ball
Foundation · IOS API REFERENCE

NSMutableURLRequest

class · iOS 2.0+ · SDK 27.1

class NSMutableURLRequest

Members (43)

method

addValue

TypeScript
addValue(value: string, field: string): void
Swift declaration
func addValue(_ value: String, forHTTPHeaderField field: String)
init

init

TypeScript
static init(): NSMutableURLRequest
Swift declaration
init()
method

setValue

TypeScript
setValue(value: (string) | null, field: string): void
Swift declaration
func setValue(_ value: String?, forHTTPHeaderField field: String)
get

httpBody

TypeScript
get httpBody(): (ArrayBuffer) | null
Swift declaration
var httpBody: Data? { get set }
set

httpBody

TypeScript
set httpBody(value: (ArrayBuffer) | null)
Swift declaration
var httpBody: Data? { get set }
get

httpBodyStream

TypeScript
get httpBodyStream(): (InputStream) | null
Swift declaration
var httpBodyStream: InputStream? { get set }
set

httpBodyStream

TypeScript
set httpBodyStream(value: (InputStream) | null)
Swift declaration
var httpBodyStream: InputStream? { get set }
get

httpMethod

TypeScript
get httpMethod(): string
Swift declaration
var httpMethod: String { get set }
set

httpMethod

TypeScript
set httpMethod(value: string)
Swift declaration
var httpMethod: String { get set }
get

httpShouldHandleCookies

TypeScript
get httpShouldHandleCookies(): boolean
Swift declaration
var httpShouldHandleCookies: Bool { get set }
set

httpShouldHandleCookies

TypeScript
set httpShouldHandleCookies(value: boolean)
Swift declaration
var httpShouldHandleCookies: Bool { get set }
get · iOS 4.0+ · Deprecated in iOS 18.4

httpShouldUsePipelining

TypeScript
get httpShouldUsePipelining(): boolean
Swift declaration
var httpShouldUsePipelining: Bool { get set }
set · iOS 4.0+ · Deprecated in iOS 18.4

httpShouldUsePipelining

TypeScript
set httpShouldUsePipelining(value: boolean)
Swift declaration
var httpShouldUsePipelining: Bool { get set }
get · iOS 2.0+

url

TypeScript
get url(): (string) | null
Swift declaration
var url: URL? { get set }
set · iOS 2.0+

url

TypeScript
set url(value: (string) | null)
Swift declaration
var url: URL? { get set }
get

allHTTPHeaderFields

TypeScript
get allHTTPHeaderFields(): (Record<string, string>) | null
Swift declaration
var allHTTPHeaderFields: [String : String]? { get set }
set

allHTTPHeaderFields

TypeScript
set allHTTPHeaderFields(value: (Record<string, string>) | null)
Swift declaration
var allHTTPHeaderFields: [String : String]? { get set }
get · iOS 6.0+

allowsCellularAccess

TypeScript
get allowsCellularAccess(): boolean
Swift declaration
var allowsCellularAccess: Bool { get set }
set · iOS 6.0+

allowsCellularAccess

TypeScript
set allowsCellularAccess(value: boolean)
Swift declaration
var allowsCellularAccess: Bool { get set }
get · iOS 13.0+

allowsConstrainedNetworkAccess

TypeScript
get allowsConstrainedNetworkAccess(): boolean
Swift declaration
var allowsConstrainedNetworkAccess: Bool { get set }
set · iOS 13.0+

allowsConstrainedNetworkAccess

TypeScript
set allowsConstrainedNetworkAccess(value: boolean)
Swift declaration
var allowsConstrainedNetworkAccess: Bool { get set }
get · iOS 13.0+

allowsExpensiveNetworkAccess

TypeScript
get allowsExpensiveNetworkAccess(): boolean
Swift declaration
var allowsExpensiveNetworkAccess: Bool { get set }
set · iOS 13.0+

allowsExpensiveNetworkAccess

TypeScript
set allowsExpensiveNetworkAccess(value: boolean)
Swift declaration
var allowsExpensiveNetworkAccess: Bool { get set }
get · iOS 18.0+

allowsPersistentDNS

TypeScript
get allowsPersistentDNS(): boolean
Swift declaration
var allowsPersistentDNS: Bool { get set }
set · iOS 18.0+

allowsPersistentDNS

TypeScript
set allowsPersistentDNS(value: boolean)
Swift declaration
var allowsPersistentDNS: Bool { get set }
get · iOS 26.1+

allowsUltraConstrainedNetworkAccess

TypeScript
get allowsUltraConstrainedNetworkAccess(): boolean
Swift declaration
var allowsUltraConstrainedNetworkAccess: Bool { get set }
set · iOS 26.1+

allowsUltraConstrainedNetworkAccess

TypeScript
set allowsUltraConstrainedNetworkAccess(value: boolean)
Swift declaration
var allowsUltraConstrainedNetworkAccess: Bool { get set }
get · iOS 14.5+

assumesHTTP3Capable

TypeScript
get assumesHTTP3Capable(): boolean
Swift declaration
var assumesHTTP3Capable: Bool { get set }
set · iOS 14.5+

assumesHTTP3Capable

TypeScript
set assumesHTTP3Capable(value: boolean)
Swift declaration
var assumesHTTP3Capable: Bool { get set }
get · iOS 15.0+

attribution

TypeScript
get attribution(): NSURLRequest_Attribution
Swift declaration
var attribution: NSURLRequest.Attribution { get set }
set · iOS 15.0+

attribution

TypeScript
set attribution(value: NSURLRequest_Attribution)
Swift declaration
var attribution: NSURLRequest.Attribution { get set }
get · iOS 2.0+

cachePolicy

TypeScript
get cachePolicy(): NSURLRequest_CachePolicy
Swift declaration
var cachePolicy: NSURLRequest.CachePolicy { get set }
set · iOS 2.0+

cachePolicy

TypeScript
set cachePolicy(value: NSURLRequest_CachePolicy)
Swift declaration
var cachePolicy: NSURLRequest.CachePolicy { get set }
get · iOS 18.2+

cookiePartitionIdentifier

TypeScript
get cookiePartitionIdentifier(): (string) | null
Swift declaration
var cookiePartitionIdentifier: String? { get set }
set · iOS 18.2+

cookiePartitionIdentifier

TypeScript
set cookiePartitionIdentifier(value: (string) | null)
Swift declaration
var cookiePartitionIdentifier: String? { get set }
get · iOS 2.0+

mainDocumentURL

TypeScript
get mainDocumentURL(): (string) | null
Swift declaration
var mainDocumentURL: URL? { get set }
set · iOS 2.0+

mainDocumentURL

TypeScript
set mainDocumentURL(value: (string) | null)
Swift declaration
var mainDocumentURL: URL? { get set }
get · iOS 4.0+

networkServiceType

TypeScript
get networkServiceType(): NSURLRequest_NetworkServiceType
Swift declaration
var networkServiceType: NSURLRequest.NetworkServiceType { get set }
set · iOS 4.0+

networkServiceType

TypeScript
set networkServiceType(value: NSURLRequest_NetworkServiceType)
Swift declaration
var networkServiceType: NSURLRequest.NetworkServiceType { get set }
get · iOS 16.1+

requiresDNSSECValidation

TypeScript
get requiresDNSSECValidation(): boolean
Swift declaration
var requiresDNSSECValidation: Bool { get set }
set · iOS 16.1+

requiresDNSSECValidation

TypeScript
set requiresDNSSECValidation(value: boolean)
Swift declaration
var requiresDNSSECValidation: Bool { get set }
get · iOS 2.0+

timeoutInterval

TypeScript
get timeoutInterval(): number
Swift declaration
var timeoutInterval: TimeInterval { get set }
set · iOS 2.0+

timeoutInterval

TypeScript
set timeoutInterval(value: number)
Swift declaration
var timeoutInterval: TimeInterval { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →