api

http4k / org.http4k.core.body / form

form

fun Request.form(name: String): String?

Returns the first form parameter with name.

Use formAsMap if you don’t want to decode the body every invocation.

fun Request.form(): Form fun Request.form(name: String, value: String): Request