Overrides (mutates) the payload of this input and returns this
.
Overrides (mutates) the payload of this input and returns this
. This requires the
content-type as a first type parameter (won't be infered).
import io.finch._, io.circe._
val text: Input = Input.post("/").withBody[Text.Plain]("Text Body")
val json: Input = Input.post("/").withBody[Application.Json](Map("json" -> "object"))
Overrides (mutates) the payload of this input to be application/x-www-form-urlencoded
.
Overrides (mutates) the payload of this input to be application/x-www-form-urlencoded
.
In addition to media type, this will also set charset to UTF-8.
Adds (mutates) new headers
to this input and returns this
.
An input for Endpoint.