Modifier and Type | Field and Description |
---|---|
static Handler<HttpServerRequest> |
HttpServerRequest.DEFAULT_INVALID_REQUEST_HANDLER
The default invalid request handler, it 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.setParamsCharset(String charset)
Override the charset to use for decoding the query parameter map, when none is set,
UTF8 is used. |
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()
Deprecated.
instead use
HttpServer.requestHandler(Handler) |
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 . |
Modifier and Type | Interface and Description |
---|---|
interface |
WebServerRequest
Extends to access the routing context associated with the request.
|
Modifier and Type | Method and Description |
---|---|
HttpServerRequest |
RoutingContext.request() |
Modifier and Type | Method and Description |
---|---|
LoggerHandler |
LoggerHandler.customFormatter(java.util.function.Function<HttpServerRequest,String> formatter)
Deprecated.
Superseded by
LoggerHandler.customFormatter(LoggerFormatter) |
Modifier and Type | Method and Description |
---|---|
HttpServerRequest |
ProxyRequest.proxiedRequest() |
Modifier and Type | Method and Description |
---|---|
void |
HttpProxy.handle(HttpServerRequest request)
Handle the outbound
HttpServerRequest . |
static ProxyRequest |
ProxyRequest.reverseProxy(HttpServerRequest proxiedRequest)
Create a new
ProxyRequest instance, the proxied request will be paused. |
Modifier and Type | Method and Description |
---|---|
HttpProxy |
HttpProxy.originRequestProvider(java.util.function.BiFunction<HttpServerRequest,HttpClient,Future<HttpClientRequest>> provider)
Set a provider that creates the request to the origin server based the incoming HTTP request.
|
default HttpProxy |
HttpProxy.originSelector(java.util.function.Function<HttpServerRequest,Future<SocketAddress>> selector)
Set a selector that resolves the origin address based on the incoming HTTP request.
|
Modifier and Type | Method and Description |
---|---|
static Future<ValidatableRequest> |
RequestUtils.extract(HttpServerRequest request,
Operation operation)
Extracts and transforms the parameters and the body of an incoming request into a
format
that can be validated by the RequestValidator . |
static Future<ValidatableRequest> |
RequestUtils.extract(HttpServerRequest request,
Operation operation,
java.util.function.Supplier<Future<Buffer>> bodySupplier)
Like
RequestUtils.extract(HttpServerRequest, Operation) , but offers to pass a supplier fpr the body. |
static Future<ValidatableRequest> |
ValidatableRequest.of(HttpServerRequest request,
Operation operation)
|
Future<ValidatedRequest> |
RequestValidator.validate(HttpServerRequest request)
Like
RequestValidator.validate(ValidatableRequest, String) , but the operationId and ValidatableRequest are
determined from the passed request. |
Future<ValidatedRequest> |
RequestValidator.validate(HttpServerRequest request,
String operationId)
Like
RequestValidator.validate(ValidatableRequest, String) , but ValidatableRequest are directly extracted from the passed request. |
Modifier and Type | Method and Description |
---|---|
HttpServerRequest |
HttpServerRequest.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static HttpServerRequest |
HttpServerRequest.newInstance(HttpServerRequest arg) |
Constructor and Description |
---|
HttpServerRequest(HttpServerRequest delegate) |
Modifier and Type | Method and Description |
---|---|
HttpServerRequest |
HttpServerRequest.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static HttpServerRequest |
HttpServerRequest.newInstance(HttpServerRequest arg) |
Constructor and Description |
---|
HttpServerRequest(HttpServerRequest delegate) |
Modifier and Type | Method and Description |
---|---|
HttpServerRequest |
HttpServerRequest.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static HttpServerRequest |
HttpServerRequest.newInstance(HttpServerRequest arg) |
Constructor and Description |
---|
HttpServerRequest(HttpServerRequest delegate) |
Copyright © 2024 Eclipse. All rights reserved.