Package | Description |
---|---|
io.vertx.core.http | |
io.vertx.core.spi.metrics | |
io.vertx.reactivex.core.http | |
io.vertx.rxjava.core.http |
Modifier and Type | Method and Description |
---|---|
HttpClientRequest |
HttpClientRequest.connectionHandler(Handler<HttpConnection> handler)
Deprecated.
instead use
HttpClient.connectionHandler(Handler) |
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 |
HttpClient.delete(int port,
String host,
String requestURI)
Create an HTTP DELETE request to send to the server at the specified host and port.
|
HttpClientRequest |
HttpClient.delete(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.delete(RequestOptions options)
Create an HTTP DELETE request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.delete(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.delete(String requestURI)
Create an HTTP DELETE request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.delete(String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.delete(String host,
String requestURI)
Create an HTTP DELETE request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.delete(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.deleteAbs(String absoluteURI)
Create an HTTP DELETE request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.deleteAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClientRequest.drainHandler(Handler<Void> handler) |
HttpClientRequest |
HttpClientRequest.endHandler(Handler<Void> endHandler)
Deprecated.
this method will be removed in Vert.x 4
|
HttpClientRequest |
HttpClientRequest.exceptionHandler(Handler<Throwable> handler) |
HttpClientRequest |
HttpClientRequest.fetch(long amount)
Deprecated.
this method will be removed in Vert.x 4
|
HttpClientRequest |
HttpClient.get(int port,
String host,
String requestURI)
Create an HTTP GET request to send to the server at the specified host and port.
|
HttpClientRequest |
HttpClient.get(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.get(RequestOptions options)
Create an HTTP GET request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.get(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.get(String requestURI)
Create an HTTP GET request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.get(String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.get(String host,
String requestURI)
Create an HTTP GET request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.get(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.getAbs(String absoluteURI)
Create an HTTP GET request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.getAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClientRequest.handler(Handler<HttpClientResponse> handler)
Deprecated.
this method will break in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> |
HttpClientRequest |
HttpClient.head(int port,
String host,
String requestURI)
Create an HTTP HEAD request to send to the server at the specified host and port.
|
HttpClientRequest |
HttpClient.head(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.head(RequestOptions options)
Create an HTTP HEAD request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.head(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.head(String requestURI)
Create an HTTP HEAD request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.head(String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.head(String host,
String requestURI)
Create an HTTP HEAD request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.head(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.headAbs(String absoluteURI)
Create an HTTP HEAD request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.headAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.options(int port,
String host,
String requestURI)
Create an HTTP OPTIONS request to send to the server at the specified host and port.
|
HttpClientRequest |
HttpClient.options(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.options(RequestOptions options)
Create an HTTP OPTIONS request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.options(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.options(String requestURI)
Create an HTTP OPTIONS request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.options(String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.options(String host,
String requestURI)
Create an HTTP OPTIONS request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.options(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.optionsAbs(String absoluteURI)
Create an HTTP OPTIONS request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.optionsAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClientRequest.pause()
Deprecated.
this method will be removed in Vert.x 4
|
HttpClientRequest |
HttpClient.post(int port,
String host,
String requestURI)
Create an HTTP POST request to send to the server at the specified host and port.
|
HttpClientRequest |
HttpClient.post(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.post(RequestOptions options)
Create an HTTP POST request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.post(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.post(String requestURI)
Create an HTTP POST request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.post(String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.post(String host,
String requestURI)
Create an HTTP POST request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.post(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.postAbs(String absoluteURI)
Create an HTTP POST request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.postAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
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 |
HttpClient.put(int port,
String host,
String requestURI)
Create an HTTP PUT request to send to the server at the specified host and port.
|
HttpClientRequest |
HttpClient.put(int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.put(RequestOptions options)
Create an HTTP PUT request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.put(RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.put(String requestURI)
Create an HTTP PUT request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.put(String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.put(String host,
String requestURI)
Create an HTTP PUT request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.put(String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.putAbs(String absoluteURI)
Create an HTTP PUT request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.putAbs(String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
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 |
HttpClient.request(HttpMethod method,
int port,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and port.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.request(HttpMethod method,
RequestOptions options)
Create an HTTP request to send to the server with the specified options.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method will break in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI)
Like
HttpClient.request(HttpMethod, int, String, String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
int port,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Like
HttpClient.request(HttpMethod, int, String, String, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options)
Like
HttpClient.request(HttpMethod, RequestOptions) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
SocketAddress serverAddress,
RequestOptions options,
Handler<HttpClientResponse> responseHandler)
Like
HttpClient.request(HttpMethod, RequestOptions, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.request(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.request(HttpMethod method,
String host,
String requestURI)
Create an HTTP request to send to the server at the specified host and default port.
|
HttpClientRequest |
HttpClient.request(HttpMethod method,
String host,
String requestURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI)
Like
HttpClient.requestAbs(HttpMethod, String) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
SocketAddress serverAddress,
String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Like
HttpClient.requestAbs(HttpMethod, String, Handler) using the serverAddress parameter to connect to the
server instead of the absoluteURI parameter. |
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
String absoluteURI)
Create an HTTP request to send to the server using an absolute URI
|
HttpClientRequest |
HttpClient.requestAbs(HttpMethod method,
String absoluteURI,
Handler<HttpClientResponse> responseHandler)
Deprecated.
this method signature will change in Vert.x 4, the handler will use an
Handler<AsyncResult<HttpClientResponse>> ,
you can use instead the WebClient |
HttpClientRequest |
HttpClientRequest.resume()
Deprecated.
this method will be removed in Vert.x 4
|
HttpClientRequest |
HttpClientRequest.sendHead()
Forces the head of the request to be written before
end() is called on the request or any data is
written to it. |
HttpClientRequest |
HttpClientRequest.sendHead(Handler<HttpVersion> 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)
Set the request host.
For HTTP/2 it sets the :authority pseudo header otherwise it sets the Host header
|
HttpClientRequest |
HttpClientRequest.setMaxRedirects(int maxRedirects)
Set the max number of HTTP redirects this request will follow.
|
HttpClientRequest |
HttpClientRequest.setRawMethod(String method)
Set the value the method to send when the method
HttpMethod.OTHER is used. |
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.setWriteQueueMaxSize(int maxSize) |
HttpClientRequest |
HttpClientRequest.write(Buffer data) |
HttpClientRequest |
HttpClientRequest.write(Buffer data,
Handler<AsyncResult<Void>> handler)
Same as
write(Buffer) but with an handler called when the operation completes |
HttpClientRequest |
HttpClientRequest.write(String chunk)
Write a
String to the request body, encoded as UTF-8. |
HttpClientRequest |
HttpClientRequest.write(String chunk,
Handler<AsyncResult<Void>> handler)
Same as
write(String) but with an handler called when the operation completes |
HttpClientRequest |
HttpClientRequest.write(String chunk,
String enc)
Write a
String to the request body, encoded using the encoding enc . |
HttpClientRequest |
HttpClientRequest.write(String chunk,
String enc,
Handler<AsyncResult<Void>> handler)
Same as
write(String,String) but with an handler called when the operation completes |
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 |
---|---|
java.util.function.Function<HttpClientResponse,Future<HttpClientRequest>> |
HttpClient.redirectHandler() |
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.
|
HttpClient |
HttpClient.redirectHandler(java.util.function.Function<HttpClientResponse,Future<HttpClientRequest>> handler)
Set a redirect handler for the http client.
|
Modifier and Type | Method and Description |
---|---|
default R |
HttpClientMetrics.requestBegin(E endpointMetric,
S socketMetric,
SocketAddress localAddress,
SocketAddress remoteAddress,
HttpClientRequest request)
Called when an http client request begins.
|
default R |
HttpClientMetrics.responsePushed(E endpointMetric,
S socketMetric,
SocketAddress localAddress,
SocketAddress remoteAddress,
HttpClientRequest request)
Called when an http client response is pushed.
|
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 © 2023 Eclipse. All rights reserved.