CookieAuthorizationProvider

public struct CookieAuthorizationProvider : AuthorizationProvider

An HTTP cookie based AuthorizationProvider.

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

    Declaration

    Swift

    public let cookies: [HTTPCookie]
  • Creates a new cookie based authorization 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