Structure
HTTPCookies.Value
A single cookie (key/value pair).
struct Value
Topics
Initializers
init(string: String, expires: Date?, maxAge: Int?, domain: String?, path: String?, isSecure: Bool, isHTTPOnly: Bool, sameSite: HTTPCookies.SameSitePolicy?)Creates a newHTTPCookieValue.init(stringLiteral: String)SeeExpressibleByStringLiteral.
Instance Properties
var domain: String?The affected domain at which the cookie is active.var expires: Date?The cookie’s expiration datevar isHTTPOnly: BoolDoes not expose the cookie over non-HTTP channels.var isSecure: BoolLimits the cookie to secure connections.var maxAge: Int?The maximum cookie age in seconds.var path: String?The path at which the cookie is active.var sameSite: HTTPCookies.SameSitePolicy?A cookie which can only be sent in requests originating from the same origin as the target domain.var string: StringThe cookie’s value.
Instance Methods
func serialize(name: String) -> StringSerializes anHTTPCookieto aString.
Type Properties
static let expired: HTTPCookies.ValueAn expiredHTTPCookieValue.
Relationships
Conforms To
Swift.ExpressibleByExtendedGraphemeClusterLiteralSwift.ExpressibleByStringLiteralSwift.ExpressibleByUnicodeScalarLiteralSwift.SendableSwift.SendableMetatype