multipartForm

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>