Directive

public struct Directive : Codable

A structure that contains payload and headers for the directive.

  • A structure that contains header fields for the directive.

    Declaration

    Swift

    public let header: Header
  • A JSON object that contains payload for the directive.

    Declaration

    Swift

    public let payload: Data
  • Creates an instance of an Directive.

    Declaration

    Swift

    public init(header: Header, payload: Data)

    Parameters

    header

    A structure that contains header fields for the directive.

    payload

    A JSON object that contains payload for the directive.

Downstream.Directive

  • A dictionary that contains payload for the directive.

    Declaration

    Swift

    public var payloadDictionary: [String : AnyHashable]? { get }