| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private Map | |
| private final HttpClient | |
| private Connection | |
| private Request. | |
| private final HttpConversation | |
| private List | |
| private boolean | |
| private final HttpFields. | |
| private String | |
| private long | |
| private String | |
| private boolean | |
| private static final URI | |
| private final Fields | |
| private String | |
| private int | |
| private BiFunction | |
| private String | |
| private NotifyingRequestListeners | |
| private final ResponseListeners | |
| private String | |
| private Object | |
| private long | |
| private long | |
| private Supplier | |
| private URI | |
| private HttpVersion | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public CompletableFuture | abort(Throwable
the abort cause, must not be null cause)Implements org. Attempts to abort the send of this request. |
| public Request | accept(String...
the media types that are acceptable in the response, such as
"text/plain;q=0.5" or "text/html" (corresponds to the accepts)Accept header)Implements org.
|
| public HttpRequest | |
| public Request | agent(String
the user agent for this request (corresponds to the agent)User-Agent header)Implements org.
|
| public Request | attribute(String
the name of the attribute name, Object the value of the attribute value)Implements org.
|
| public Request | body(Request.
the request content of this request contentImplements org.
|
| private String | |
| private URI | |
| public Request | cookie(HttpCookie
a cookie for this request cookie)Implements org.
|
| public HttpRequest | |
| protected HttpRequest | |
| private void | |
| public Request | file(Path
the file to upload file)Implements org. Shortcut method to specify a file as a content for this request, with the default content type of "application/octet-stream". |
| public Request | file(Path
the file to upload file, String the content type of the file contentType)Implements org. Shortcut method to specify a file as a content for this request, with the given content type. |
| public Request | followRedirects(boolean
whether this request follows redirects follow)Implements org.
|
| public Throwable | |
| public String | |
| public Map | |
| public Request. | |
| public Connection | getConnection()
Overrides default org. Returns the connection associated with this request. |
| public HttpConversation | |
| public List | |
| public HttpFields | |
| public String | |
| protected HttpClient | |
| private NotifyingRequestListeners | |
| public long | |
| public String | |
| public Fields | |
| public String | |
| public int | |
| public BiFunction | |
| public String | |
| public ResponseListeners | |
| public String | |
| public Object | |
| public long | |
| public long | getTimeoutNanoTime()
Returns: The nanoTime at which the timeout expires or |
| public Supplier | |
| public URI | |
| public HttpVersion | |
| public Request | headers(Consumer<HttpFields.
the code that modifies the headers of this request consumerImplements org. Modifies the headers of this request. |
| public Request | host(String
the URI host of this request, such as "127.0.0.1" or "google.com" host)Overrides default org.
|
| public Request | idleTimeout(long
the idle timeout for this request timeout, TimeUnit the idle timeout unit unit)Implements org.
|
| public boolean | |
| public boolean | |
| public Request | listener(Request.
a listener for request events listenerImplements org.
|
| public Request | method(HttpMethod
the method of this request, such as GET or POST method)Implements org.
|
| public Request | method(String
the method of this request, such as GET or POST method)Implements org.
|
| private URI | |
| pack-priv boolean | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public Request | onComplete(Response.
a listener for complete event listenerImplements org.
|
| public Request | onPush(BiFunction<Request, Request, Response.
a handler for pushed resource events pushHandlerImplements org. Sets a handler for pushed resources. |
| public Request | onRequestBegin(Request.
a listener for request begin event listenerImplements org.
|
| public Request | onRequestCommit(Request.
a listener for request commit event listenerImplements org.
|
| public Request | onRequestContent(Request.
a listener for request content events listenerImplements org.
|
| public Request | onRequestFailure(Request.
a listener for request failure event listenerImplements org.
|
| public Request | onRequestHeaders(Request.
a listener for request headers event listenerImplements org.
|
| public Request | onRequestQueued(Request.
a listener for request queued event listenerImplements org.
|
| public Request | onRequestSuccess(Request.
a listener for request success event listenerImplements org.
|
| public Request | onResponseBegin(Response.
a listener for response begin event listenerImplements org.
|
| public Request | onResponseContent(Response.
a consuming listener for response content events listenerImplements org.
|
| public Request | onResponseContentAsync(Response.
an asynchronous listener for response content events listenerImplements org.
|
| public Request | onResponseContentSource(Response.
a listener for driving listenerorg.Implements org.
|
| public Request | onResponseFailure(Response.
a listener for response failure event listenerImplements org.
|
| public Request | onResponseHeader(Response.
a listener for response header event listenerImplements org.
|
| public Request | onResponseHeaders(Response.
a listener for response headers event listenerImplements org. Registers a listener for the headers event. |
| public Request | onResponseSuccess(Response.
a listener for response success event listenerImplements org.
|
| public Request | param(String
the name of the query parameter name, String the value of the query parameter value)Implements org. Adds a URI query parameter with the given name and value. |
| private Request | |
| public Request | path(String
the URI path of this request, such as "/" or "/path?param=1" path)Implements org. Specifies the URI path - and possibly the query - of this request. |
| public Request | port(int
the URI port of this request such as 80 or 443 port)Overrides default org.
|
| private RequestListeners | |
| public Request | scheme(String
the URI scheme of this request, such as "http" or "https" scheme)Implements org.
|
| public ContentResponse | send()
Implements org. Sends this request and returns the response. |
| public void | send(Response.
the listener that receives response events listenerImplements org. Sends this request and asynchronously notifies the given listener for response events. |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public Request | tag(Object
the metadata to tag the request with tag)Implements org. Tags this request with the given metadata tag. |
| public Request | timeout(long
the total timeout for the request/response conversation;
use zero or a negative value to disable the timeout timeout, TimeUnit the timeout unit unit)Implements org.
|
| public String | |
| public Request | trailersSupplier(Supplier<HttpFields>
the supplier of the trailers of this request trailers)Implements org. Provides the trailers of this request. |
| private String | |
| private String | |
| public Request | version(HttpVersion
the HTTP version of this request, such as "HTTP/1.1" version)Implements org.
|