HttpBodyContentMultiPartFormData
class HttpBodyContentMultiPartFormData(val boundary: String = "---------------------------") : HttpBodyContent
Types
Functions
Link copied to clipboard
suspend fun add(name: String, file: VfsFile, fileName: String? = file.baseName, contentType: String? = fileName?.let { MimeType.getByExtensionOrNull(PathInfo(fileName).extensionLC)?.mime })
suspend fun add(name: String, content: AsyncStream, fileName: String? = null, contentType: String? = null): HttpBodyContentMultiPartFormData
fun add(name: String, content: ByteArray, fileName: String? = null, contentType: String? = null): HttpBodyContentMultiPartFormData
fun add(name: String, size: Long, getContent: suspend () -> AsyncInputStreamWithLength, fileName: String? = null, contentType: String? = null): HttpBodyContentMultiPartFormData
Link copied to clipboard