Skip to content

HTML forms

HTML form support is provided on 2 levels:

  1. Through the use of form() extension methods on Request to get/set String values.
  2. Using the Lens system, which adds the facility to define form fields in a typesafe way, and to validate form contents (in either a strict (400) or "feedback" mode).

Gradle setup

    compile group: "org.http4k", name: "http4k-core", version: "3.101.0"

Standard (non-typesafe) API

Lens (typesafe, validating) API