application/x-www-form-urlencoded
application/json
multipart/form-data
RequestContext.parseBody
. This method is idempotent, and only ever performs the body-parsing logic once, so it is recommended to call it any time you access the request body, unless you are 100% sure that it has been parsed before.Map
, List
, or Object
, depending on your use case:multipart/form-data
, Angel will also populate the uploadedFiles
field. The UploadedFile
wrapper class provides mechanisms for reading content types, metadata, and accessing the contents of an uploaded file as a Stream<List<int>>
:bodyAsObject
, bodyAsMap
, or bodyAsList
exactly once:content-type
header when parseBody
is called, a 400 Bad Request
error will be thrown.