addValue
TypeScriptaddValue(value: string, field: string): voidSwift declarationfunc addValue(_ value: String, forHTTPHeaderField field: String)class · iOS 2.0+ · SDK 27.1
class NSMutableURLRequestaddValue(value: string, field: string): voidSwift declarationfunc addValue(_ value: String, forHTTPHeaderField field: String)static init(): NSMutableURLRequestSwift declarationinit()setValue(value: (string) | null, field: string): voidSwift declarationfunc setValue(_ value: String?, forHTTPHeaderField field: String)get httpBody(): (ArrayBuffer) | nullSwift declarationvar httpBody: Data? { get set }set httpBody(value: (ArrayBuffer) | null)Swift declarationvar httpBody: Data? { get set }get httpBodyStream(): (InputStream) | nullSwift declarationvar httpBodyStream: InputStream? { get set }set httpBodyStream(value: (InputStream) | null)Swift declarationvar httpBodyStream: InputStream? { get set }get httpMethod(): stringSwift declarationvar httpMethod: String { get set }set httpMethod(value: string)Swift declarationvar httpMethod: String { get set }get httpShouldHandleCookies(): booleanSwift declarationvar httpShouldHandleCookies: Bool { get set }set httpShouldHandleCookies(value: boolean)Swift declarationvar httpShouldHandleCookies: Bool { get set }get httpShouldUsePipelining(): booleanSwift declarationvar httpShouldUsePipelining: Bool { get set }set httpShouldUsePipelining(value: boolean)Swift declarationvar httpShouldUsePipelining: Bool { get set }get url(): (string) | nullSwift declarationvar url: URL? { get set }set url(value: (string) | null)Swift declarationvar url: URL? { get set }get allHTTPHeaderFields(): (Record<string, string>) | nullSwift declarationvar allHTTPHeaderFields: [String : String]? { get set }set allHTTPHeaderFields(value: (Record<string, string>) | null)Swift declarationvar allHTTPHeaderFields: [String : String]? { get set }get allowsCellularAccess(): booleanSwift declarationvar allowsCellularAccess: Bool { get set }set allowsCellularAccess(value: boolean)Swift declarationvar allowsCellularAccess: Bool { get set }get allowsConstrainedNetworkAccess(): booleanSwift declarationvar allowsConstrainedNetworkAccess: Bool { get set }set allowsConstrainedNetworkAccess(value: boolean)Swift declarationvar allowsConstrainedNetworkAccess: Bool { get set }get allowsExpensiveNetworkAccess(): booleanSwift declarationvar allowsExpensiveNetworkAccess: Bool { get set }set allowsExpensiveNetworkAccess(value: boolean)Swift declarationvar allowsExpensiveNetworkAccess: Bool { get set }get allowsPersistentDNS(): booleanSwift declarationvar allowsPersistentDNS: Bool { get set }set allowsPersistentDNS(value: boolean)Swift declarationvar allowsPersistentDNS: Bool { get set }get allowsUltraConstrainedNetworkAccess(): booleanSwift declarationvar allowsUltraConstrainedNetworkAccess: Bool { get set }set allowsUltraConstrainedNetworkAccess(value: boolean)Swift declarationvar allowsUltraConstrainedNetworkAccess: Bool { get set }get assumesHTTP3Capable(): booleanSwift declarationvar assumesHTTP3Capable: Bool { get set }set assumesHTTP3Capable(value: boolean)Swift declarationvar assumesHTTP3Capable: Bool { get set }get attribution(): NSURLRequest_AttributionSwift declarationvar attribution: NSURLRequest.Attribution { get set }set attribution(value: NSURLRequest_Attribution)Swift declarationvar attribution: NSURLRequest.Attribution { get set }get cachePolicy(): NSURLRequest_CachePolicySwift declarationvar cachePolicy: NSURLRequest.CachePolicy { get set }set cachePolicy(value: NSURLRequest_CachePolicy)Swift declarationvar cachePolicy: NSURLRequest.CachePolicy { get set }get cookiePartitionIdentifier(): (string) | nullSwift declarationvar cookiePartitionIdentifier: String? { get set }set cookiePartitionIdentifier(value: (string) | null)Swift declarationvar cookiePartitionIdentifier: String? { get set }get mainDocumentURL(): (string) | nullSwift declarationvar mainDocumentURL: URL? { get set }set mainDocumentURL(value: (string) | null)Swift declarationvar mainDocumentURL: URL? { get set }get networkServiceType(): NSURLRequest_NetworkServiceTypeSwift declarationvar networkServiceType: NSURLRequest.NetworkServiceType { get set }set networkServiceType(value: NSURLRequest_NetworkServiceType)Swift declarationvar networkServiceType: NSURLRequest.NetworkServiceType { get set }get requiresDNSSECValidation(): booleanSwift declarationvar requiresDNSSECValidation: Bool { get set }set requiresDNSSECValidation(value: boolean)Swift declarationvar requiresDNSSECValidation: Bool { get set }get timeoutInterval(): numberSwift declarationvar timeoutInterval: TimeInterval { get set }set timeoutInterval(value: number)Swift declarationvar timeoutInterval: TimeInterval { get set }No declarations were skipped in this snapshot.