Package | Description |
---|---|
io.vertx.core.http | |
io.vertx.httpproxy | |
io.vertx.reactivex.core.http | |
io.vertx.rxjava.core.http | |
io.vertx.rxjava3.core.http |
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
HttpClientRequest.authority(HostAndPort authority)
Override the request authority, when using HTTP/1.x this overrides the request
host header, when using
HTTP/2 this sets the authority pseudo header. |
HttpClientRequest |
HttpClientRequest.continueHandler(Handler<Void> handler)
If you send an HTTP request with the header
Expect set to the value 100-continue
and the server responds with an interim HTTP response with a status code of 100 and a Continue handler
has been set using this method, then the handler will be called. |
HttpClientRequest |
HttpClientRequest.drainHandler(Handler<Void> handler) |
HttpClientRequest |
HttpClientRequest.earlyHintsHandler(Handler<MultiMap> handler)
If the server responds with an interim HTTP response with a status code of
103 and a Early Hints handler
has been set using this method, then the handler will be called. |
HttpClientRequest |
HttpClientRequest.exceptionHandler(Handler<Throwable> handler) |
HttpClientRequest |
HttpClientRequest.pushHandler(Handler<HttpClientRequest> handler)
Set a push handler for this request.
The handler is called when the client receives a push promise from the server.
|
HttpClientRequest |
HttpClientRequest.putHeader(CharSequence name,
CharSequence value)
Like
putHeader(String, String) but using CharSequence |
HttpClientRequest |
HttpClientRequest.putHeader(CharSequence name,
Iterable<CharSequence> values)
Like
putHeader(String, Iterable) but using CharSequence |
HttpClientRequest |
HttpClientRequest.putHeader(String name,
Iterable<String> values)
Put an HTTP header with multiple values
|
HttpClientRequest |
HttpClientRequest.putHeader(String name,
String value)
Put an HTTP header
|
HttpClientRequest |
HttpClientResponse.request() |
HttpClientRequest |
HttpClientRequest.response(Handler<AsyncResult<HttpClientResponse>> handler)
Set a callback for the associated
HttpClientResponse . |
HttpClientRequest |
HttpClientRequest.sendHead(Handler<AsyncResult<Void>> completionHandler)
Like
sendHead() but with an handler after headers have been sent. |
HttpClientRequest |
HttpClientRequest.setChunked(boolean chunked)
If chunked is true then the request will be set into HTTP chunked mode
|
HttpClientRequest |
HttpClientRequest.setFollowRedirects(boolean followRedirects)
Set the request to follow HTTP redirects up to
HttpClientOptions.getMaxRedirects() . |
HttpClientRequest |
HttpClientRequest.setHost(String host)
Deprecated.
instead use
authority(HostAndPort) |
HttpClientRequest |
HttpClientRequest.setMaxRedirects(int maxRedirects)
Set the max number of HTTP redirects this request will follow.
|
HttpClientRequest |
HttpClientRequest.setMethod(HttpMethod method)
Set the HTTP method for this request.
|
HttpClientRequest |
HttpClientRequest.setPort(int port)
Deprecated.
instead use
authority(HostAndPort) |
default HttpClientRequest |
HttpClientRequest.setStreamPriority(StreamPriority streamPriority)
Sets the priority of the associated stream.
|
HttpClientRequest |
HttpClientRequest.setTimeout(long timeoutMs)
Set's the amount of time after which if the request does not return any data within the timeout period an
TimeoutException will be passed to the exception handler (if provided) and
the request will be closed. |
HttpClientRequest |
HttpClientRequest.setURI(String uri)
Set the request uri.
|
HttpClientRequest |
HttpClientRequest.setWriteQueueMaxSize(int maxSize) |
default HttpClientRequest |
HttpClientRequest.writeCustomFrame(HttpFrame frame)
Like
writeCustomFrame(int, int, Buffer) but with an HttpFrame . |
HttpClientRequest |
HttpClientRequest.writeCustomFrame(int type,
int flags,
Buffer payload)
Write an HTTP/2 frame to the request, allowing to extend the HTTP/2 protocol.
|
Modifier and Type | Method and Description |
---|---|
Future<HttpClientRequest> |
HttpClient.request(HttpMethod method,
int port,
String host,
String requestURI)
Like
HttpClient.request(HttpMethod, int, String, String, Handler) but returns a Future of the asynchronous result |
Future<HttpClientRequest> |
HttpClient.request(HttpMethod method,
String requestURI)
Like
HttpClient.request(HttpMethod, String, Handler) but returns a Future of the asynchronous result |
Future<HttpClientRequest> |
HttpClient.request(HttpMethod method,
String host,
String requestURI)
Like
HttpClient.request(HttpMethod, String, String, Handler) but returns a Future of the asynchronous result |
Future<HttpClientRequest> |
HttpClient.request(RequestOptions options)
Like
HttpClient.request(RequestOptions, Handler) but returns a Future of the asynchronous result |
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
HttpClientRequest.pushHandler(Handler<HttpClientRequest> handler)
Set a push handler for this request.
The handler is called when the client receives a push promise from the server.
|
void |
HttpClient.request(HttpMethod method,
int port,
String host,
String requestURI,
Handler<AsyncResult<HttpClientRequest>> handler)
Create an HTTP request to send to the server at the
host and port . |
void |
HttpClient.request(HttpMethod method,
String requestURI,
Handler<AsyncResult<HttpClientRequest>> handler)
Create an HTTP request to send to the server at the default host and port.
|
void |
HttpClient.request(HttpMethod method,
String host,
String requestURI,
Handler<AsyncResult<HttpClientRequest>> handler)
Create an HTTP request to send to the server at the
host and default port. |
void |
HttpClient.request(RequestOptions options,
Handler<AsyncResult<HttpClientRequest>> handler)
Create an HTTP request to send to the server.
|
Modifier and Type | Method and Description |
---|---|
default Future<Void> |
ProxyRequest.proxy(HttpClientRequest request)
Proxy this request to the origin server using the specified
request and then send the proxy response. |
Future<ProxyResponse> |
ProxyRequest.send(HttpClientRequest request)
Send this request to the origin server using the specified
request . |
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.
|
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
HttpClientRequest.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static HttpClientRequest |
HttpClientRequest.newInstance(HttpClientRequest arg) |
Constructor and Description |
---|
HttpClientRequest(HttpClientRequest delegate) |
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
HttpClientRequest.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static HttpClientRequest |
HttpClientRequest.newInstance(HttpClientRequest arg) |
Constructor and Description |
---|
HttpClientRequest(HttpClientRequest delegate) |
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
HttpClientRequest.getDelegate() |
Modifier and Type | Method and Description |
---|---|
static HttpClientRequest |
HttpClientRequest.newInstance(HttpClientRequest arg) |
Constructor and Description |
---|
HttpClientRequest(HttpClientRequest delegate) |
Copyright © 2024 Eclipse. All rights reserved.