CustomHTTPCookie

public struct CustomHTTPCookie : Codable, Sendable

A struct that represents a custom HTTP cookie.

  • Initializes a CustomHTTPCookie from an HTTPCookie.

    Declaration

    Swift

    public init(from cookie: HTTPCookie)

    Parameters

    cookie

    The HTTPCookie to initialize from.

  • Converts the CustomHTTPCookie to an HTTPCookie.

    Declaration

    Swift

    public func toHTTPCookie() -> HTTPCookie?

    Return Value

    An HTTPCookie instance.