One Logo Pool Ball
Foundation · IOS API REFERENCE

HTTPCookie

class · iOS 2.0+ · SDK 27.1

class HTTPCookie

Members (17)

static · iOS 2.0+

cookies

TypeScript
static cookies(headerFields: Record<string, string>, URL: string): Array<HTTPCookie>
Swift declaration
class func cookies(withResponseHeaderFields headerFields: [String : String], for URL: URL) -> [HTTPCookie]
static · iOS 2.0+

requestHeaderFields

TypeScript
static requestHeaderFields(cookies: Array<HTTPCookie>): Record<string, string>
Swift declaration
class func requestHeaderFields(with cookies: [HTTPCookie]) -> [String : String]
init · iOS 2.0+

init

TypeScript
static init(properties: NativeMap<HTTPCookiePropertyKey, unknown>): (HTTPCookie) | null
Swift declaration
init?(properties: [HTTPCookiePropertyKey : Any])
get · iOS 2.0+

isHTTPOnly

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

comment

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

commentURL

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

domain

TypeScript
get domain(): string
Swift declaration
var domain: String { get }
get · iOS 2.0+

expiresDate

TypeScript
get expiresDate(): (globalThis.Date) | null
Swift declaration
var expiresDate: Date? { get }
get · iOS 2.0+

name

TypeScript
get name(): string
Swift declaration
var name: String { get }
get · iOS 2.0+

path

TypeScript
get path(): string
Swift declaration
var path: String { get }
get · iOS 2.0+

portList

TypeScript
get portList(): (Array<NSNumber>) | null
Swift declaration
var portList: [NSNumber]? { get }
get · iOS 2.0+

properties

TypeScript
get properties(): (NativeMap<HTTPCookiePropertyKey, unknown>) | null
Swift declaration
var properties: [HTTPCookiePropertyKey : Any]? { get }
get · iOS 13.0+

sameSitePolicy

TypeScript
get sameSitePolicy(): (HTTPCookieStringPolicy) | null
Swift declaration
var sameSitePolicy: HTTPCookieStringPolicy? { get }
get · iOS 2.0+

isSecure

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

isSessionOnly

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

value

TypeScript
get value(): string
Swift declaration
var value: String { get }
get · iOS 2.0+

version

TypeScript
get version(): number
Swift declaration
var version: Int { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HTTPCookie.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All Foundation types →