Class RemoteDevBodyCollector
java.lang.Object
io.quarkus.vertx.http.runtime.devmode.RemoteDevBodyCollector
Collects one remote-dev request body into a spool file while enforcing request and aggregate limits.
The request remains paused until the current chunk has been written on a worker thread, so only one chunk is in
flight. After collection completes, the completion consumer owns the RemoteDevBodyCollector.CompletedBody and must close it.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static final classA completed, file-backed request body.(package private) static enum -
Method Summary
Modifier and TypeMethodDescription(package private) voidcancel()(package private) static voidstart(RemoteSyncHandler owner, io.vertx.core.http.HttpServerRequest request, RemoteDevBodyLimits limits, RemoteDevBodyAdmission admission, RemoteDevBodySpoolStore spoolStore, Consumer<RemoteDevBodyCollector.CompletedBody> completion) Validates the request headers and starts collection.
-
Method Details
-
start
static void start(RemoteSyncHandler owner, io.vertx.core.http.HttpServerRequest request, RemoteDevBodyLimits limits, RemoteDevBodyAdmission admission, RemoteDevBodySpoolStore spoolStore, Consumer<RemoteDevBodyCollector.CompletedBody> completion) Validates the request headers and starts collection.- Parameters:
completion- receives ownership of the completed body and must close it
-
cancel
void cancel()
-