RequestBody

public protocol RequestBody : Encodable, Sendable

A protocol used for structs to be sent with Requests.

  • jsonData Default implementation

    A JSON representation of the struct.

    Default Implementation

    Declaration

    Swift

    var jsonData: Data { get }