interface FileBodyEncodable

external
interface FileBodyEncodable<BodyValue>

Represents an object capable of representing itself as a request body with file attachments. Objects implementing this interface can separate JSON body data from binary file data, which is necessary for multipart/form-data requests.

Type Parameters

BodyValue

The JSON body type

external
toFileBody() : FileBodyEncodableResult<BodyValue>

Transforms this object to its file body format, separating the JSON body from file attachments.