Body

public struct Body : Codable

The schema for .data .body entries

  • Type is either text/plain or text/html (this isn’t a sensible enum because / currently gets encoded/decoded inappropriately)

    Declaration

    Swift

    public var type: String
  • The text of said type

    Declaration

    Swift

    public var value: String
  • Initialize from components

    Declaration

    Swift

    public init(type: String, value: String)