CookieSessionProvider

public struct CookieSessionProvider : SessionProvider

An HTTP cookie based SessionProvider.

  • Cookies that can be used to do authorization on the server.

    Declaration

    Swift

    public let cookies: [HTTPCookie]
  • Creates a new cookie based session provider.

    Declaration

    Swift

    public init(_ cookies: [HTTPCookie])

    Parameters

    cookies

    A list of valid session cookies that can be used to do authorization on the server.

  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws