BodyParser

io.github.edadma.apion.BodyParser
object BodyParser

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
BodyParser.type

Members list

Value members

Concrete methods

def json[A : JsonDecoder](): Handler

Creates middleware for parsing JSON request bodies

Creates middleware for parsing JSON request bodies

Type parameters

A

The expected type of the parsed JSON body

Attributes

Returns

Middleware that parses JSON bodies and adds them to request context

Creates middleware for parsing URL-encoded form data

Creates middleware for parsing URL-encoded form data

Attributes

Returns

Middleware that parses form data and adds it to request context