this for synchronization purpose. The client orstream instead are
called must not be called under this lock to avoid deadlocks.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private Handler | |
| private Handler | |
| private Handler | |
| private boolean | |
| private final Future | |
| private final Promise | |
| private Handler | |
| private boolean | |
| private HeadersMultiMap | |
| private boolean | |
| private boolean | |
| pack-priv static final Logger | |
| private int | |
| private int | |
| private StreamPriority | |
| private Function | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | HttpClientRequestImpl(HttpClientStream stream, PromiseInternal<HttpClientResponse> responsePromise, HttpMethod method, SocketAddress server, String host, int port, String requestURI, String traceOperation)
|
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| 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 synchronized HttpConnection | |
| public synchronized HttpClientRequest | |
| private void | |
| public synchronized HttpClientRequest | |
| public synchronized 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 |
| private synchronized Handler | |
| public synchronized HttpClientRequest | exceptionHandler(Handler<Throwable> handler)
Implements io.
|
| public synchronized int | |
| public synchronized StreamPriority | |
| private void | |
| private void | |
| private void | |
| pack-priv void | |
| private void | handleNextRequest(HttpClientRequest next, Handler<AsyncResult<HttpClientResponse>> handler, long timeoutMs)
|
| pack-priv void | handleResponse(Promise<HttpClientResponse> promise, HttpClientResponse resp, long timeoutMs)
Implements abstract io.
|
| public synchronized MultiMap | |
| public synchronized boolean | |
| public synchronized boolean | |
| public int | |
| public synchronized HttpClientRequest | putHeader(String
The header name name, String The header value value)Implements io. Put an HTTP header |
| public synchronized HttpClientRequest | putHeader(String
The header name name, Iterable<String> The header values values)Implements io. Put an HTTP header with multiple values |
| public synchronized HttpClientRequest | putHeader(CharSequence name, CharSequence value)
Implements io. Like |
| public synchronized HttpClientRequest | putHeader(CharSequence name, Iterable<CharSequence> values)
Implements io. Like |
| public synchronized HttpClientRequest | |
| private boolean | |
| public Future | sendHead()
Implements io. Forces the head of the request to be written before |
| public HttpClientRequest | sendHead(Handler<AsyncResult<Void>> headersHandler)
Implements io. Like |
| public synchronized HttpClientRequestImpl | setChunked(boolean
true if chunked encoding chunked)Implements io. If chunked is true then the request will be set into HTTP chunked mode |
| public synchronized HttpClientRequest | setFollowRedirects(boolean
true to follow HTTP redirectsImplements io. Set the request to follow HTTP redirects up to |
| public synchronized 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 synchronized HttpClientRequest | setStreamPriority(StreamPriority
the priority of this request's stream priority)Overrides default io. Sets the priority of the associated stream. |
| public synchronized HttpClientRequest | setWriteQueueMaxSize(int
the max size of the write stream maxSize)Implements io. Set the maximum size of the write queue to |
| public synchronized HttpClientRequest | traceOperation(String
the operation op)Implements io. Set the trace operation of this request. |
| public String | |
| private void | |
| public HttpVersion | |
| public Future | write(Buffer
the data to write chunk)Implements io.
References Deprecated
Buffer is deprecated or references (maybe indirectly) at least one deprecated element.
Write some data to the stream. |
| public void | write(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 | write(String
the data chunk chunk)Implements io. Write a |
| public void | write(String chunk, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| public Future | write(String
the data chunk chunk, String the encoding enc)Implements io. Write a |
| public void | write(String chunk, String enc, Handler<AsyncResult<Void>> handler)
Implements io. Same as |
| private void | |
| 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 |