Package-level declarations

Types

Link copied to clipboard
data class MultipartForm(val fields: Map<String, List<MultipartFormField>> = emptyMap(), val files: Map<String, List<MultipartFormFile>> = emptyMap(), val errors: List<Failure> = emptyList(), val onClose: List<Closeable> = emptyList()) : Closeable
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard

Functions

Link copied to clipboard

Convenience function to write the MultipartForm to the message body and set the content type.

fun Body.Companion.multipartForm(validator: Validator, vararg parts: Lens<MultipartForm, *>, defaultBoundary: String = MULTIPART_BOUNDARY, diskThreshold: Int = DEFAULT_DISK_THRESHOLD, contentTypeFn: (String) -> ContentType = ::MultipartFormWithBoundary, getDiskLocation: () -> DiskLocation = { DiskLocation.Temp() }): BiDiBodyLensSpec<MultipartForm>