Package | Description |
---|---|
io.vertx.core.http |
Modifier and Type | Field and Description |
---|---|
static Handler<HttpServerRequest> |
HttpServerRequest.DEFAULT_INVALID_REQUEST_HANDLER
The default invalid request handler, it uses uses the
decoderResult() cause and the request information
to determine the status code of the response to be sent. |
Modifier and Type | Method and Description |
---|---|
default HttpServerRequest |
HttpServerRequest.body(Handler<AsyncResult<Buffer>> handler)
Same as
body() but with an handler called when the operation completes |
default HttpServerRequest |
HttpServerRequest.bodyHandler(Handler<Buffer> bodyHandler)
Convenience method for receiving the entire request body in one piece.
|
HttpServerRequest |
HttpServerRequest.customFrameHandler(Handler<HttpFrame> handler)
Set a custom frame handler.
|
HttpServerRequest |
HttpServerRequest.endHandler(Handler<Void> endHandler) |
HttpServerRequest |
HttpServerRequest.exceptionHandler(Handler<Throwable> handler) |
HttpServerRequest |
HttpServerRequest.fetch(long amount) |
HttpServerRequest |
HttpServerRequest.handler(Handler<Buffer> handler) |
HttpServerRequest |
HttpServerRequest.pause() |
HttpServerRequest |
HttpServerRequest.resume() |
default HttpServerRequest |
HttpServerRequest.routed(String route)
Marks this request as being routed to the given route.
|
HttpServerRequest |
HttpServerRequest.setExpectMultipart(boolean expect)
Call this with true if you are expecting a multi-part body to be submitted in the request.
|
HttpServerRequest |
HttpServerRequest.streamPriorityHandler(Handler<StreamPriority> handler)
Set an handler for stream priority changes
|
HttpServerRequest |
HttpServerRequest.uploadHandler(Handler<HttpServerFileUpload> uploadHandler)
Set an upload handler.
|
Modifier and Type | Method and Description |
---|---|
Handler<HttpServerRequest> |
HttpServer.requestHandler() |
ReadStream<HttpServerRequest> |
HttpServer.requestStream()
Return the request stream for the server.
|
Modifier and Type | Method and Description |
---|---|
HttpServer |
HttpServer.invalidRequestHandler(Handler<HttpServerRequest> handler)
Set a
handler for handling invalid requests. |
HttpServer |
HttpServer.requestHandler(Handler<HttpServerRequest> handler)
Set the request handler for the server to
requestHandler . |
Copyright © 2022 Eclipse. All rights reserved.