api

http4k / org.http4k.lens / WebForm

WebForm

data class WebForm

Constructors

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

Properties

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

Functions

Name Summary
minus operator fun minus(name: String): WebForm
plus operator fun plus(kv: Pair<String, String>): WebForm

Extension Functions

Name Summary
shouldHaveFormField fun <T> WebForm.shouldHaveFormField(field: Lens<WebForm, T>, matcher: Matcher<T>): Unit
shouldNotHaveFormField fun <T> WebForm.shouldNotHaveFormField(field: Lens<WebForm, T>, matcher: Matcher<T>): Unit
with fun WebForm.with(vararg modifiers: (WebForm) -> WebForm): WebForm