Class BodyConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether the uploaded files should be removed after serving the request.booleanWhether the files sent usingmultipart/form-datawill be stored locally.booleanWhether the form attributes should be added to the request parameters.HTTP multipart request related settingsbooleanWhether the body buffer should pre-allocated based on theContent-Lengthheader value.The directory where the files sent usingmultipart/form-datashould be stored. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
handleFileUploads
Whether the files sent usingmultipart/form-datawill be stored locally.If
true, they will be stored inquarkus.http.body-handler.uploads-directoryand will be made available viaio.vertx.ext.web.RoutingContext.fileUploads(). Otherwise, the files sent usingmultipart/form-datawill not be stored locally, andio.vertx.ext.web.RoutingContext.fileUploads()will always return an empty collection. Note that even with this option being set tofalse, themultipart/form-datarequests will be accepted. -
uploadsDirectory
The directory where the files sent usingmultipart/form-datashould be stored.Either an absolute path or a path relative to the current directory of the application process.
-
mergeFormAttributes
Whether the form attributes should be added to the request parameters.If
true, the form attributes will be added to the request parameters; otherwise the form parameters will not be added to the request parameters -
deleteUploadedFilesOnEnd
Whether the uploaded files should be removed after serving the request.If
truethe uploaded files stored inquarkus.http.body-handler.uploads-directorywill be removed after handling the request. Otherwise, the files will be left there forever. -
preallocateBodyBuffer
Whether the body buffer should pre-allocated based on theContent-Lengthheader value.If
truethe body buffer is pre-allocated according to the size read from theContent-Lengthheader. Otherwise, the body buffer is pre-allocated to 1KB, and is resized dynamically -
multipart
HTTP multipart request related settings
-
-
Constructor Details
-
BodyConfig
public BodyConfig()
-