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.
| package |
Default |
|---|
__construct()
create( $arg0 = null) : \io\vertx\jphp\ext\web\handler\BodyHandler
create()
Create a body handler setting if it should handle file uploads
param $handleFileUploads [boolean] true if files upload should be handled create($handleFileUploads)
Create a body handler and use the given upload directory.
param $uploadDirectory [string] the uploads directory create($uploadDirectory)
boolean | string
\io\vertx\jphp\ext\web\handler\BodyHandlerthe body handler
handle( $arg0) : void
RoutingContext
setBodyLimit( $arg0) : $this
integer
$thisreference to this for fluency
setDeleteUploadedFilesOnEnd( $arg0) : $this
boolean
$thisreference to this for fluency
setHandleFileUploads( $arg0) : $this
boolean
$thisreference to this for fluency
setMergeFormAttributes( $arg0) : $this
boolean
$thisreference to this for fluency
setPreallocateBodyBuffer( $arg0) : $this
The buffer is capped at 64KB
boolean
$thisreference to this for fluency
setUploadsDirectory( $arg0) : $this
string
$thisreference to this for fluency
DEFAULT_BODY_LIMIT
| var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
|---|
DEFAULT_UPLOADS_DIRECTORY
| var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
|---|
DEFAULT_MERGE_FORM_ATTRIBUTES
| var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
|---|
DEFAULT_DELETE_UPLOADED_FILES_ON_END
| var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
|---|
DEFAULT_PREALLOCATE_BODY_BUFFER
| var |
php文件只是为了写代码方便,常量的实际值请参考原java文件 |
|---|