# Class: BodyHandler

## vertx-web-js/body_handler~ BodyHandler

#### new BodyHandler()

Source:
  - vertx-web-js/body_handler.js, line 29

### Methods

#### handle(arg0)

##### Parameters:

Name | Type | Description
--- | --- | ---
`arg0` | RoutingContext |

Source:
  - vertx-web-js/body_handler.js, line 39

#### setBodyLimit(bodyLimit) → {BodyHandler}

Set the maximum body size -1 means unlimited

##### Parameters:

Name | Type | Description
--- | --- | ---
`bodyLimit` | number | the max size

Source:
  - vertx-web-js/body_handler.js, line 53

##### Returns:

reference to this for fluency

Type
  BodyHandler

#### setDeleteUploadedFilesOnEnd(deleteUploadedFilesOnEnd) → {BodyHandler}

Set whether uploaded files should be removed after handling the request

##### Parameters:

Name | Type | Description
--- | --- | ---
`deleteUploadedFilesOnEnd` | boolean | true if uploaded files should be removed after handling the request

Source:
  - vertx-web-js/body_handler.js, line 98

##### Returns:

reference to this for fluency

Type
  BodyHandler

#### setMergeFormAttributes(mergeFormAttributes) → {BodyHandler}

Set whether form attributes will be added to the request parameters

##### Parameters:

Name | Type | Description
--- | --- | ---
`mergeFormAttributes` | boolean | true if they should be merged

Source:
  - vertx-web-js/body_handler.js, line 83

##### Returns:

reference to this for fluency

Type
  BodyHandler

#### setUploadsDirectory(uploadsDirectory) → {BodyHandler}

Set the uploads directory to use

##### Parameters:

Name | Type | Description
--- | --- | ---
`uploadsDirectory` | string | the uploads directory

Source:
  - vertx-web-js/body_handler.js, line 68

##### Returns:

reference to this for fluency

Type
  BodyHandler