PartMap

annotation class PartMap(val encoding: String = "binary")

Denote name and value parts of a multipart request.

@POST("upload")
@Multipart
suspend fun uploadFile(
@PartMap description: Map<String, String>,
@PartMap vararg extras: Pair<String, String>,
): String

See also

Properties

Link copied to clipboard

The Content-Transfer-Encoding of this part.