UploadDataKt

public final class UploadDataKt
public final class UploadDataKt

Functions

Link copied to clipboard
public final static ByteData ByteData(ByteArray data, ContentType contentType)
public final static ByteData ByteData(ByteArray data, ContentType contentType)
public final static ByteData ByteData(String data, Charset charset, ContentType contentType)
public final static ByteData ByteData(String data, Charset charset, ContentType contentType)

Creates a new instance of ByteData with the given parameters.

Link copied to clipboard
public final static FormData FormData(StringEntry entries)
public final static FormData FormData(StringEntry entries)

Creates a new instance of FormData with the given entries.

Link copied to clipboard
public final static MultipartFormData MultipartFormData(FormDataEntry entries)
public final static MultipartFormData MultipartFormData(FormDataEntry entries)

Creates a new instance of MultipartFormData with the given entries.

Link copied to clipboard
public final static TextData TextData(String value)
public final static TextData TextData(String value)

Creates a new instance of TextData with the given value.