| Modifier and Type | Field and Description |
|---|---|
| private final MultiMap | |
| private final HttpClientStream |
| Access | Constructor and Description |
|---|---|
| public | HttpClientRequestPushPromise(HttpClientStream stream, HttpMethod method, String uri, String host, int port, MultiMap headers)
|
| Modifier and Type | Method and Description |
|---|---|
| public Future | connect()
Implements io. Like |
| public void | connect(Handler<AsyncResult<HttpClientResponse>>
the response completion handler handler)Implements io. Create an HTTP tunnel to the server. |
| public HttpConnection | |
| public HttpClientRequest | |
| public HttpClientRequest | |
| public HttpClientRequest | |
| public Future | end(String
the data chunk chunk)Implements io. Same as |
| public void | end(String chunk, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public Future | end(String
the data chunk chunk, String the encoding enc)Implements io. Same as |
| public void | end(String chunk, String enc, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public Future | end(Buffer
the data to write chunk)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public void | end(Buffer chunk, Handler<AsyncResult<Void>> handler)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public Future | |
| public void | end(Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public HttpClientRequest | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public int | |
| public StreamPriority | |
| pack-priv void | handleResponse(Promise<HttpClientResponse> promise, HttpClientResponse resp, long timeoutMs)
Implements abstract io.
|
| public MultiMap | |
| public boolean | |
| public boolean | |
| public int | |
| public HttpClientRequest | putHeader(String
The header name name, String The header value value)Implements io. Put an HTTP header |
| public HttpClientRequest | putHeader(CharSequence name, CharSequence value)
Implements io. Like |
| public HttpClientRequest | putHeader(String
The header name name, Iterable<String> The header values values)Implements io. Put an HTTP header with multiple values |
| public HttpClientRequest | putHeader(CharSequence name, Iterable<CharSequence> values)
Implements io. Like |
| public HttpClientRequest | |
| public Future | sendHead()
Implements io. Forces the head of the request to be written before |
| public HttpClientRequest | sendHead(Handler<AsyncResult<Void>> completionHandler)
Implements io. Like |
| public HttpClientRequest | setChunked(boolean
true if chunked encoding chunked)Implements io. If chunked is true then the request will be set into HTTP chunked mode |
| public HttpClientRequest | setFollowRedirects(boolean
true to follow HTTP redirectsImplements io. Set the request to follow HTTP redirects up to |
| public HttpClientRequest | setMaxRedirects(int
the number of HTTP redirect to follow maxRedirects)Implements io. Set the max number of HTTP redirects this request will follow. |
| public HttpClientRequest | setWriteQueueMaxSize(int
the max size of the write stream maxSize)Implements io. Set the maximum size of the write queue to |
| public HttpClientRequest | traceOperation(String
the operation op)Implements io. Set the trace operation of this request. |
| public String | |
| public HttpVersion | |
| public Future | write(Buffer
the data to write data)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Write some data to the stream. |
| public Future | write(String
the data chunk chunk)Implements io. Write a |
| public Future | write(String
the data chunk chunk, String the encoding enc)Implements io. Write a |
| public void | write(Buffer data, Handler<AsyncResult<Void>> handler)
Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Same as |
| public void | write(String chunk, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public void | write(String chunk, String enc, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public HttpClientRequest | writeCustomFrame(int
the 8-bit frame type type, int the 8-bit frame flags flags, Buffer the frame payload payload)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Write an HTTP/2 frame to the request, allowing to extend the HTTP/2 protocol. |
| public boolean | writeQueueFull()
Implements io. This will return |
| headers | back to summary |
|---|---|
| private final MultiMap headers | |
| stream | back to summary |
|---|---|
| private final HttpClientStream stream | |
| HttpClientRequestPushPromise | back to summary |
|---|---|
| public HttpClientRequestPushPromise(HttpClientStream stream, HttpMethod method, String uri, String host, int port, MultiMap headers) | |
| connect | back to summary |
|---|---|
| public Future Implements io. Doc from io. Like
| |
| connect | back to summary |
|---|---|
| public void connect(Handler<AsyncResult<HttpClientResponse>> handler) Implements io. Doc from io. Create an HTTP tunnel to the server. Send HTTP request headers to the server, then configures the transport to exchange raw buffers when the server replies with an appropriate response:
The Use HTTP/1.1 pipe-lined requests are not supported.f
| |
| connection | back to summary |
|---|---|
| public HttpConnection connection() Implements io.
| |
| continueHandler | back to summary |
|---|---|
public HttpClientRequest continueHandler(@Nullable Handler<Void> handler)
| |
| drainHandler | back to summary |
|---|---|
| public HttpClientRequest drainHandler(Handler<Void> handler) Implements io.
| |
| earlyHintsHandler | back to summary |
|---|---|
public HttpClientRequest earlyHintsHandler(@Nullable Handler<MultiMap> handler)
| |
| end | back to summary |
|---|---|
| public Future Implements io. Doc from io. Same as | |
| end | back to summary |
|---|---|
| public void end(String chunk, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as
| |
| end | back to summary |
|---|---|
| public Future Implements io. Doc from io. Same as | |
| end | back to summary |
|---|---|
| public void end(String chunk, String enc, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as
| |
| end | back to summary |
|---|---|
| public Future Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Same as
| |
| end | back to summary |
|---|---|
| public void end(Buffer chunk, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Same as
| |
| end | back to summary |
|---|---|
| public Future Implements io. Doc from io. Ends the request. If no data has been written to the request body, and Once the request has ended, it cannot be used any more, | |
| end | back to summary |
|---|---|
| public void end(Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as
| |
| exceptionHandler | back to summary |
|---|---|
| public HttpClientRequest exceptionHandler(Handler<Throwable> handler) Implements io.
| |
| getMaxRedirects | back to summary |
|---|---|
| public int getMaxRedirects() Implements io.
| |
| getStreamPriority | back to summary |
|---|---|
| public StreamPriority getStreamPriority() Implements io.
| |
| handleResponse | back to summary |
|---|---|
| pack-priv void handleResponse(Promise<HttpClientResponse> promise, HttpClientResponse resp, long timeoutMs) Implements abstract io.
| |
| headers | back to summary |
|---|---|
| public MultiMap headers() Implements io.
| |
| isChunked | back to summary |
|---|---|
| public boolean isChunked() Implements io.
| |
| isFollowRedirects | back to summary |
|---|---|
| public boolean isFollowRedirects() Implements io.
| |
| numberOfRedirections | back to summary |
|---|---|
| public int numberOfRedirections() Implements io.
| |
| putHeader | back to summary |
|---|---|
| public HttpClientRequest putHeader(String name, String value) Implements io. Doc from io. Put an HTTP header
| |
| putHeader | back to summary |
|---|---|
| public HttpClientRequest putHeader(CharSequence name, CharSequence value) Implements io. Doc from io. Like
| |
| putHeader | back to summary |
|---|---|
| public HttpClientRequest putHeader(String name, Iterable<String> values) Implements io. Doc from io. Put an HTTP header with multiple values
| |
| putHeader | back to summary |
|---|---|
| public HttpClientRequest putHeader(CharSequence name, Iterable<CharSequence> values) Implements io. Doc from io. Like
| |
| redirectHandler | back to summary |
|---|---|
public HttpClientRequest redirectHandler(@Nullable Function<HttpClientResponse, Future<HttpClientRequest>> handler)
| |
| sendHead | back to summary |
|---|---|
| public Future Implements io. Doc from io. Forces the head of the request to be written before
This is normally used to implement HTTP 100-continue handling, see | |
| sendHead | back to summary |
|---|---|
| public HttpClientRequest sendHead(Handler<AsyncResult<Void>> completionHandler) Implements io. Doc from io. Like
| |
| setChunked | back to summary |
|---|---|
| public HttpClientRequest setChunked(boolean chunked) Implements io. Doc from io. If chunked is true then the request will be set into HTTP chunked mode
| |
| setFollowRedirects | back to summary |
|---|---|
| public HttpClientRequest setFollowRedirects(boolean followRedirect) Implements io. Doc from io. Set the request to follow HTTP redirects up to
| |
| setMaxRedirects | back to summary |
|---|---|
| public HttpClientRequest setMaxRedirects(int maxRedirects) Implements io. Doc from io. Set the max number of HTTP redirects this request will follow. The default is
| |
| setWriteQueueMaxSize | back to summary |
|---|---|
| public HttpClientRequest setWriteQueueMaxSize(int maxSize) Implements io. Doc from io. Set the maximum size of the write queue to
The value is defined by the implementation of the stream, e.g in bytes for a
| |
| traceOperation | back to summary |
|---|---|
| public HttpClientRequest traceOperation(String op) Implements io. Doc from io. Set the trace operation of this request.
| |
| traceOperation | back to summary |
|---|---|
| public String traceOperation() Implements io.
| |
| version | back to summary |
|---|---|
| public HttpVersion version() Implements io.
| |
| write | back to summary |
|---|---|
| public Future Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Write some data to the stream. The data is usually put on an internal write queue, and the write actually happens
asynchronously. To avoid running out of memory by putting too much on the write queue,
check the When the | |
| write | back to summary |
|---|---|
| public Future Implements io. Doc from io. Write a | |
| write | back to summary |
|---|---|
| public Future Implements io. Doc from io. Write a | |
| write | back to summary |
|---|---|
| public void write(Buffer data, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Same as
| |
| write | back to summary |
|---|---|
| public void write(String chunk, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as
| |
| write | back to summary |
|---|---|
| public void write(String chunk, String enc, Handler<AsyncResult<Void>> handler) Implements io. Doc from io. Same as
| |
| writeCustomFrame | back to summary |
|---|---|
| public HttpClientRequest writeCustomFrame(int type, int flags, Buffer payload) Implements io. Doc from io. References Deprecated
See corresponding docs for further information. Write an HTTP/2 frame to the request, allowing to extend the HTTP/2 protocol. The frame is sent immediatly and is not subject to flow control.
This method must be called after the request headers have been sent and only for the protocol HTTP/2.
The
| |
| writeQueueFull | back to summary |
|---|---|
| public boolean writeQueueFull() Implements io. Doc from io. This will return
| |