api

http4k / org.http4k.lens / MultipartForm

MultipartForm

data class MultipartForm : Closeable (source)

Constructors

Name Summary
<init> MultipartForm(fields: Map<String, List<String>> = emptyMap(), files: Map<String, List<FormFile>> = emptyMap(), errors: List<Failure> = emptyList())

Properties

Name Summary
errors val errors: List<Failure>
fields val fields: Map<String, List<String>>
files val files: Map<String, List<FormFile>>

Functions

Name Summary
close fun close(): Unit
minusField fun minusField(name: String): MultipartForm
minusFile fun minusFile(name: String): MultipartForm
plus operator fun plus(kv: Pair<String, String>): MultipartForm
operator fun plus(kv: Pair<String, FormFile>): MultipartForm

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T