| Modifier and Type | Field and Description |
|---|---|
| protected final ContextInternal | |
| private long | |
| private long | |
| private String | |
| private long | |
| private HttpMethod | |
| private String | |
| private int | |
| private Handler | |
| private String | |
| private Throwable | |
| private final PromiseInternal | |
| protected final SocketAddress | |
| protected final boolean | |
| protected final HttpClientStream | |
| private String |
| Access | Constructor and Description |
|---|---|
| pack-priv | HttpClientRequestBase(HttpClientStream stream, PromiseInternal<HttpClientResponse> responsePromise, HttpMethod method, SocketAddress server, String host, int port, String uri)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| protected String | |
| public synchronized HttpClientRequest | authority(HostAndPort
override the request authority authority)Implements io. Override the request authority, when using HTTP/1.x this overrides the request |
| private synchronized long | |
| pack-priv synchronized void | |
| pack-priv void | |
| public String | |
| public synchronized HttpMethod | getMethod()
Implements io. The HTTP method for the request. |
| public int | |
| public synchronized String | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv abstract void | |
| private void | |
| protected Throwable | |
| public String | |
| pack-priv synchronized Handler | |
| public synchronized HttpClientRequest | pushHandler(Handler<HttpClientRequest>
the handler handler)Implements io. Set a push handler for this request. |
| public String | |
| public boolean | reset(long
the error code code)Implements io. Reset this request:
|
| public boolean | reset(long
the error code code, Throwable an optional cause that can be attached to the error code cause)Implements io. Reset this request:
|
| private boolean | |
| public HttpClientRequest | response(Handler<AsyncResult<HttpClientResponse>>
the completion handler handler)Implements io. Set a callback for the associated |
| public Future | |
| public synchronized HttpClientRequest | setHost(String
the host part of the HTTP/1.1 host)host header or HTTP/2 authority pseudo headerImplements io. Set the host value of the HTTP/1.1 The initial value is the same as the server socket address host. |
| public synchronized HttpClientRequest | setMethod(HttpMethod
the HTTP method method)Implements io. Set the HTTP method for this request. |
| public synchronized HttpClientRequest | setPort(int
the port part of the HTTP/1.1 port)host header or HTTP/2 authority pseudo headerImplements io. Set the port value of the HTTP/1.1 Keep in mind that this won't change the actual server socket address for this request. |
| public synchronized HttpClientRequest | setTimeout(long timeout)
Implements io. Like |
| public synchronized HttpClientRequest | setURI(String
the request uri uri)Implements io. Set the request uri. |
| public int | |
| pack-priv static NoStackTraceTimeoutException |
| context | back to summary |
|---|---|
| protected final ContextInternal context | |
| currentTimeoutMs | back to summary |
|---|---|
| private long currentTimeoutMs | |
| currentTimeoutTimerId | back to summary |
|---|---|
| private long currentTimeoutTimerId | |
| host | back to summary |
|---|---|
| private String host | |
| lastDataReceived | back to summary |
|---|---|
| private long lastDataReceived | |
| method | back to summary |
|---|---|
| private HttpMethod method | |
| path | back to summary |
|---|---|
| private String path | |
| port | back to summary |
|---|---|
| private int port | |
| pushHandler | back to summary |
|---|---|
| private Handler<HttpClientRequest> pushHandler | |
| query | back to summary |
|---|---|
| private String query | |
| reset | back to summary |
|---|---|
| private Throwable reset | |
| responsePromise | back to summary |
|---|---|
| private final PromiseInternal<HttpClientResponse> responsePromise | |
| server | back to summary |
|---|---|
| protected final SocketAddress server | |
| ssl | back to summary |
|---|---|
| protected final boolean ssl | |
| stream | back to summary |
|---|---|
| protected final HttpClientStream stream | |
| uri | back to summary |
|---|---|
| private String uri | |
| HttpClientRequestBase | back to summary |
|---|---|
| pack-priv HttpClientRequestBase(HttpClientStream stream, PromiseInternal<HttpClientResponse> responsePromise, HttpMethod method, SocketAddress server, String host, int port, String uri) | |
| absoluteURI | back to summary |
|---|---|
| public String absoluteURI() Implements io.
| |
| authority | back to summary |
|---|---|
| protected String authority() | |
| authority | back to summary |
|---|---|
| public synchronized HttpClientRequest authority(HostAndPort authority) Implements io. Doc from io. Override the request authority, when using HTTP/1.x this overrides the request The default request authority is the server host and port when connecting to the server.
| |
| cancelTimeout | back to summary |
|---|---|
| private synchronized long cancelTimeout() | |
| dataReceived | back to summary |
|---|---|
| pack-priv synchronized void dataReceived() | |
| fail | back to summary |
|---|---|
| pack-priv void fail(Throwable t) | |
| getHost | back to summary |
|---|---|
| public String getHost() Implements io.
| |
| getMethod | back to summary |
|---|---|
| public synchronized HttpMethod getMethod() Implements io. Doc from io. The HTTP method for the request.
| |
| getPort | back to summary |
|---|---|
| public int getPort() Implements io.
| |
| getURI | back to summary |
|---|---|
| public synchronized String getURI() Implements io.
| |
| handleException | back to summary |
|---|---|
| pack-priv void handleException(Throwable t) | |
| handlePush | back to summary |
|---|---|
| pack-priv void handlePush(HttpClientPush push) | |
| handleResponse | back to summary |
|---|---|
| pack-priv void handleResponse(HttpClientResponse resp) | |
| handleResponse | back to summary |
|---|---|
| pack-priv abstract void handleResponse(Promise<HttpClientResponse> promise, HttpClientResponse resp, long timeoutMs) | |
| handleTimeout | back to summary |
|---|---|
| private void handleTimeout(long timeoutMs) | |
| mapException | back to summary |
|---|---|
| protected Throwable mapException(Throwable t) | |
| path | back to summary |
|---|---|
| public String path() Implements io.
| |
| pushHandler | back to summary |
|---|---|
| pack-priv synchronized Handler | |
| pushHandler | back to summary |
|---|---|
| public synchronized HttpClientRequest pushHandler(Handler<HttpClientRequest> handler) Implements io. Doc from io. Set a push handler for this request. The handler is called when the client receives a push promise from the server. The handler can be called multiple times, for each push promise.
The handler is called with a read-only In addition the handler should call the HttpClientRequest#response(Handler) method to set an handler to
process the response.
| |
| query | back to summary |
|---|---|
| public String query() Implements io.
| |
| reset | back to summary |
|---|---|
| public boolean reset(long code) Implements io. Doc from io. Reset this request:
When the request has not yet been sent, the request will be aborted and false is returned as indicator.
| |
| reset | back to summary |
|---|---|
| public boolean reset(long code, Throwable cause) Implements io. Doc from io. Reset this request:
When the request has not yet been sent, the request will be aborted and
| |
| reset | back to summary |
|---|---|
| private boolean reset(Throwable cause) | |
| response | back to summary |
|---|---|
| public HttpClientRequest response(Handler<AsyncResult<HttpClientResponse>> handler) Implements io. Doc from io. Set a callback for the associated This method does not modify the current request being sent.
| |
| response | back to summary |
|---|---|
| public Future Implements io.
| |
| setHost | back to summary |
|---|---|
| public synchronized HttpClientRequest setHost(String host) Implements io. Doc from io. Set the host value of the HTTP/1.1 The initial value is the same as the server socket address host. Keep in mind that changing this value won't change the actual server socket address for this request.
| |
| setMethod | back to summary |
|---|---|
| public synchronized HttpClientRequest setMethod(HttpMethod method) Implements io. Doc from io. Set the HTTP method for this request.
| |
| setPort | back to summary |
|---|---|
| public synchronized HttpClientRequest setPort(int port) Implements io. Doc from io. Set the port value of the HTTP/1.1 Keep in mind that this won't change the actual server socket address for this request. The initial value is the same than the server socket address port.
| |
| setTimeout | back to summary |
|---|---|
| public synchronized HttpClientRequest setTimeout(long timeout) Implements io. Doc from io. Like
| |
| setURI | back to summary |
|---|---|
| public synchronized HttpClientRequest setURI(String uri) Implements io. Doc from io. Set the request uri.
| |
| streamId | back to summary |
|---|---|
| public int streamId() Overrides default io.
| |
| timeoutEx | back to summary |
|---|---|
| pack-priv static NoStackTraceTimeoutException timeoutEx(long timeoutMs, HttpMethod method, SocketAddress server, String uri) | |