vertx / io.vertx.rxjava.ext.web.handler / BodyHandler

BodyHandler

open class BodyHandler : Handler<RoutingContext>

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.

NOTE: This class has been automatically generated from the io.vertx.ext.web.handler.BodyHandler non RX-ified interface using Vert.x codegen.

Constructors

<init>

BodyHandler(delegate: BodyHandler)

Properties

__TYPE_ARG

static val __TYPE_ARG: TypeArg<BodyHandler>

Functions

create

open static fun create(): BodyHandler

Create a body handler with defaults

open static fun create(uploadDirectory: String): BodyHandler

Create a body handler and use the given upload directory.

equals

open fun equals(other: Any?): Boolean

getDelegate

open fun getDelegate(): BodyHandler

handle

open fun handle(arg0: RoutingContext): Unit

hashCode

open fun hashCode(): Int

newInstance

open static fun newInstance(arg: BodyHandler): BodyHandler

setBodyLimit

open fun setBodyLimit(bodyLimit: Long): BodyHandler

Set the maximum body size -1 means unlimited

setDeleteUploadedFilesOnEnd

open fun setDeleteUploadedFilesOnEnd(deleteUploadedFilesOnEnd: Boolean): BodyHandler

Set whether uploaded files should be removed after handling the request

setMergeFormAttributes

open fun setMergeFormAttributes(mergeFormAttributes: Boolean): BodyHandler

Set whether form attributes will be added to the request parameters

setUploadsDirectory

open fun setUploadsDirectory(uploadsDirectory: String): BodyHandler

Set the uploads directory to use

toString

open fun toString(): String