Package | Description |
---|---|
io.vertx.rxjava.core.http |
Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<HttpClientRequest> |
HttpClientRequest.__TYPE_ARG |
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.idleTimeout(long timeout)
Sets the amount of time after which, if the request does not return any data within the timeout period,
the request/response is closed and the related futures are failed with a
TimeoutException ,
e.g. |
static HttpClientRequest |
HttpClientRequest.newInstance(HttpClientRequest arg) |
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(java.lang.String, java.lang.String) but using CharSequence |
HttpClientRequest |
HttpClientRequest.putHeader(CharSequence name,
Iterable<CharSequence> values)
Like
putHeader(java.lang.String, java.lang.String) 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 |
HttpClientRequest.redirectHandler(java.util.function.Function<HttpClientResponse,Future<HttpClientRequest>> handler) |
HttpClientRequest |
HttpClientResponse.request() |
HttpClientRequest |
HttpClientRequest.response()
Set a callback for the associated
HttpClientResponse . |
HttpClientRequest |
HttpClientRequest.response(Handler<AsyncResult<HttpClientResponse>> handler)
Set a callback for the associated
HttpClientResponse . |
HttpClientRequest |
HttpClientRequest.sendHead()
Like
sendHead(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) but with an handler after headers have been sent. |
HttpClientRequest |
HttpClientRequest.sendHead(Handler<AsyncResult<Void>> completionHandler)
Like
sendHead(io.vertx.core.Handler<io.vertx.core.AsyncResult<java.lang.Void>>) 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 . |
HttpClientRequest |
HttpClientRequest.setHost(String host)
Deprecated.
|
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.
|
HttpClientRequest |
HttpClientRequest.setStreamPriority(StreamPriority streamPriority)
Sets the priority of the associated stream.
|
HttpClientRequest |
HttpClientRequest.setTimeout(long timeout)
Deprecated.
|
HttpClientRequest |
HttpClientRequest.setURI(String uri)
Set the request uri.
|
HttpClientRequest |
HttpClientRequest.setWriteQueueMaxSize(int maxSize) |
HttpClientRequest |
HttpClientRequest.traceOperation(String op)
Set the trace operation of this request.
|
HttpClientRequest |
HttpClientRequest.writeCustomFrame(HttpFrame frame)
Like
writeCustomFrame(int, int, io.vertx.rxjava.core.buffer.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 |
---|---|
Single<HttpClientRequest> |
HttpClient.rxRequest(HttpMethod method,
int port,
String host,
String requestURI)
Create an HTTP request to send to the server at the
host and port . |
Single<HttpClientRequest> |
HttpClient.rxRequest(HttpMethod method,
String requestURI)
Create an HTTP request to send to the server at the default host and port.
|
Single<HttpClientRequest> |
HttpClient.rxRequest(HttpMethod method,
String host,
String requestURI)
Create an HTTP request to send to the server at the
host and default port. |
Single<HttpClientRequest> |
HttpClient.rxRequest(RequestOptions options)
Create an HTTP request to send to the server.
|
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.
|
HttpClientRequest |
HttpClientRequest.redirectHandler(java.util.function.Function<HttpClientResponse,Future<HttpClientRequest>> handler) |
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.
|
Copyright © 2024 Eclipse. All rights reserved.