RequestBody

public enum RequestBody

The body sent along with a HTTP request

Version

1.0.0

Date

20/11/22

Author

Adamas
  • Undocumented

    Declaration

    Swift

    case dictionary(_: [String : Any], bodyType: ContentType)
  • Undocumented

    Declaration

    Swift

    case array(_: [Any])
  • Undocumented

    Declaration

    Swift

    case object(_: Encodable)
  • Undocumented

    Declaration

    Swift

    case data(_: Data)
  • Convert the body to a Data object

    Declaration

    Swift

    public var data: Data? { get }
  • The content type of the body

    Declaration

    Swift

    public var contentType: String? { get }