@CompileStatic class BodyHandler
A handler which gathers the entire request body and sets it on the .
It also handles HTTP file uploads and can be used to limit body sizes.
| Constructor and description |
|---|
BodyHandler
(Object delegate) |
| Type | Name and description |
|---|---|
static BodyHandler |
create()Create a body handler with defaults |
Object |
getDelegate() |
void |
handle(RoutingContext arg0) |
BodyHandler |
setBodyLimit(long bodyLimit)Set the maximum body size -1 means unlimited |
BodyHandler |
setMergeFormAttributes(boolean mergeFormAttributes)Set whether form attributes will be added to the request parameters |
BodyHandler |
setUploadsDirectory(String uploadsDirectory)Set the uploads directory to use |
Create a body handler with defaults
Set the maximum body size -1 means unlimited
bodyLimit - the max sizeSet whether form attributes will be added to the request parameters
mergeFormAttributes - true if they should be mergedSet the uploads directory to use
uploadsDirectory - the uploads directoryio.vertx:vertx-web:3.1.0