Structure
HTTPCookies.Value
A single cookie (key/value pair).
struct Value
Topics
Initializers
init(string:expires:maxAge:domain:path:isSecure:isHTTPOnly:sameSite:)Creates a newHTTPCookieValue.init(stringLiteral:)SeeExpressibleByStringLiteral.
Instance Properties
domainThe affected domain at which the cookie is active.expiresThe cookie’s expiration dateisHTTPOnlyDoes not expose the cookie over non-HTTP channels.isSecureLimits the cookie to secure connections.maxAgeThe maximum cookie age in seconds.pathThe path at which the cookie is active.sameSiteA cookie which can only be sent in requests originating from the same origin as the target domain.stringThe cookie’s value.
Instance Methods
serialize(name:)Serializes anHTTPCookieto aString.
Type Properties
expiredAn expiredHTTPCookieValue.
Relationships
Conforms To
Swift.ExpressibleByExtendedGraphemeClusterLiteralSwift.ExpressibleByStringLiteralSwift.ExpressibleByUnicodeScalarLiteralSwift.SendableSwift.SendableMetatype