| Modifier and Type | Field and Description |
|---|---|
| private final InetSocketAddress | |
| pack-priv final boolean | |
| private volatile boolean | |
| private final String | |
| private final Map | |
| private volatile Proxy | |
| pack-priv final HttpRequest. | |
| pack-priv final boolean | |
| private final HttpHeadersBuilder | |
| private final Duration | |
| private final URI | |
| public static final String | USER_AGENT
The value of the User-Agent header for all requests sent by the client. |
| private final HttpHeaders | |
| private volatile boolean | |
| private volatile boolean | |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| public | |
| public | HttpRequestImpl(HttpRequest request, ProxySelector ps)
Creates an HttpRequestImpl from the given request. |
| private | HttpRequestImpl(URI uri, String method, HttpRequestImpl other, boolean mayHaveBody)
Creates a HttpRequestImpl using fields of an existing request impl. |
| private | HttpRequestImpl(URI uri, String method, HttpRequestImpl other, boolean mayHaveBody, Optional<BiPredicate<String, String>> redirectHeadersFilter)
|
| pack-priv | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv InetSocketAddress | |
| public Optional | bodyPublisher()
Implements abstract java. Returns an |
| private static void | |
| pack-priv static HttpRequestImpl | createPushRequest(HttpRequestImpl parent, HttpHeaders headers)
Creates a HttpRequestImpl from the given set of Headers and the associated "parent" request. |
| public boolean | expectContinue()
Implements abstract java. Returns this request's expect continue setting. |
| pack-priv InetSocketAddress | |
| public <T> Optional | getOption(HttpOption<T> option)
Overrides java. Returns the value configured on this request for the given option, if any. |
| pack-priv HttpHeadersBuilder | |
| pack-priv HttpHeaders | |
| public boolean | |
| public HttpHeaders | headers()
Implements abstract java. The (user-accessible) request headers that this request was (or will be) sent with. |
| pack-priv final HttpOption. | |
| pack-priv final boolean | |
| pack-priv final boolean | |
| public void | |
| pack-priv boolean | |
| public String | method()
Implements abstract java. Returns the request method for this request. |
| public static HttpRequestImpl | newInstanceForAuthentication(HttpRequestImpl other)
Returns a new instance suitable for authentication. |
| public static HttpRequestImpl | newInstanceForRedirection(URI uri, String method, HttpRequestImpl other, boolean mayHaveBody)
Returns a new instance suitable for redirection. |
| private Map | |
| pack-priv InetSocketAddress | |
| private HttpRequest. | |
| private static Proxy | retrieveProxy(HttpRequest request, ProxySelector ps, URI uri)
Retrieves a copy of the proxy either from the given |
| pack-priv boolean | |
| pack-priv void | |
| public void | |
| public void | setSystemHeader(String name, String value)
Implements jdk.
|
| public void | setUserSetAuthFlag(Authenticator.
These flags are set if the user set an Authorization or Proxy-Authorization header overriding headers produced by an Authenticator that was also set The values are checked in the AuthenticationFilter which tells the library to return whatever response received to the user instead of causing request to be resent, in case of error. |
| public Optional | timeout()
Implements abstract java. Returns an |
| public String | |
| public URI | |
| private static String | |
| public Optional | version()
Implements abstract java. Returns an |
| authority | back to summary |
|---|---|
| private final InetSocketAddress authority | |
| expectContinue | back to summary |
|---|---|
| pack-priv final boolean expectContinue | |
| isWebSocket | back to summary |
|---|---|
| private volatile boolean isWebSocket | |
| method | back to summary |
|---|---|
| private final String method | |
| options | back to summary |
|---|---|
| private final Map<HttpOption<?>, Object> options | |
| proxy | back to summary |
|---|---|
| private volatile Proxy proxy | |
| requestPublisher | back to summary |
|---|---|
| pack-priv final HttpRequest. | |
| secure | back to summary |
|---|---|
| pack-priv final boolean secure | |
| systemHeadersBuilder | back to summary |
|---|---|
| private final HttpHeadersBuilder systemHeadersBuilder | |
| timeout | back to summary |
|---|---|
| private final Duration timeout | |
| uri | back to summary |
|---|---|
| private final URI uri | |
| USER_AGENT | back to summary |
|---|---|
| public static final String USER_AGENT The value of the User-Agent header for all requests sent by the client. | |
| userHeaders | back to summary |
|---|---|
| private final HttpHeaders userHeaders | |
| userSetAuthorization | back to summary |
|---|---|
| private volatile boolean userSetAuthorization | |
| userSetProxyAuthorization | back to summary |
|---|---|
| private volatile boolean userSetProxyAuthorization | |
| version | back to summary |
|---|---|
| private final Optional<HttpClient. | |
| HttpRequestImpl | back to summary |
|---|---|
| public HttpRequestImpl(HttpRequestBuilderImpl builder) Creates an HttpRequestImpl from the given builder. | |
| HttpRequestImpl | back to summary |
|---|---|
| public HttpRequestImpl(HttpRequest request, ProxySelector ps) Creates an HttpRequestImpl from the given request. | |
| HttpRequestImpl | back to summary |
|---|---|
| private HttpRequestImpl(URI uri, String method, HttpRequestImpl other, boolean mayHaveBody) Creates a HttpRequestImpl using fields of an existing request impl. The newly created HttpRequestImpl does not copy the system headers. | |
| HttpRequestImpl | back to summary |
|---|---|
| private HttpRequestImpl(URI uri, String method, HttpRequestImpl other, boolean mayHaveBody, Optional<BiPredicate<String, String>> redirectHeadersFilter) | |
| HttpRequestImpl | back to summary |
|---|---|
| pack-priv HttpRequestImpl(String method, InetSocketAddress authority, Utils. | |
| HttpRequestImpl | back to summary |
|---|---|
| private HttpRequestImpl(HttpRequestImpl parent, HttpHeaders headers) throws IOException | |
| authority | back to summary |
|---|---|
| pack-priv InetSocketAddress authority() | |
| bodyPublisher | back to summary |
|---|---|
| public Optional Implements abstract java. Doc from java. Returns an
| |
| checkTimeout | back to summary |
|---|---|
| private static void checkTimeout(Duration duration) | |
| createPushRequest | back to summary |
|---|---|
| pack-priv static HttpRequestImpl createPushRequest(HttpRequestImpl parent, HttpHeaders headers) throws IOException Creates a HttpRequestImpl from the given set of Headers and the associated "parent" request. Fields not taken from the headers are taken from the parent. | |
| expectContinue | back to summary |
|---|---|
| public boolean expectContinue() Implements abstract java. Doc from java. Returns this request's expect continue setting.
| |
| getAddress | back to summary |
|---|---|
| pack-priv InetSocketAddress getAddress() | |
| getOption | back to summary |
|---|---|
| public <T> Optional Overrides java. Doc from java. Returns the value configured on this request for the given option, if any.
| |
| getSystemHeadersBuilder | back to summary |
|---|---|
| pack-priv HttpHeadersBuilder getSystemHeadersBuilder() | |
| getUserHeaders | back to summary |
|---|---|
| pack-priv HttpHeaders getUserHeaders() | |
| getUserSetAuthFlag | back to summary |
|---|---|
| public boolean getUserSetAuthFlag(Authenticator. | |
| headers | back to summary |
|---|---|
| public HttpHeaders headers() Implements abstract java. Doc from java. The (user-accessible) request headers that this request was (or will be) sent with.
| |
| http3Discovery | back to summary |
|---|---|
| pack-priv final HttpOption. | |
| isConnect | back to summary |
|---|---|
| pack-priv final boolean isConnect() | |
| isHttp3Only | back to summary |
|---|---|
| pack-priv final boolean isHttp3Only(HttpClient. | |
| isWebSocket | back to summary |
|---|---|
| public void isWebSocket(boolean is) Implements jdk.
| |
| isWebSocket | back to summary |
|---|---|
| pack-priv boolean isWebSocket() | |
| method | back to summary |
|---|---|
| public String method() Implements abstract java. Returns the request method for this request. If not set explicitly, the default method for any request is "GET".
| |
| newInstanceForAuthentication | back to summary |
|---|---|
| public static HttpRequestImpl newInstanceForAuthentication(HttpRequestImpl other) Returns a new instance suitable for authentication. | |
| newInstanceForRedirection | back to summary |
|---|---|
| public static HttpRequestImpl newInstanceForRedirection(URI uri, String method, HttpRequestImpl other, boolean mayHaveBody) Returns a new instance suitable for redirection. | |
| optionsFor | back to summary |
|---|---|
| private Map | |
| proxy | back to summary |
|---|---|
| pack-priv InetSocketAddress proxy() | |
| publisher | back to summary |
|---|---|
| private HttpRequest. | |
| retrieveProxy | back to summary |
|---|---|
| private static Proxy retrieveProxy(HttpRequest request, ProxySelector ps, URI uri) Retrieves a copy of the proxy either from the given | |
| secure | back to summary |
|---|---|
| pack-priv boolean secure() | |
| setH2Upgrade | back to summary |
|---|---|
| pack-priv void setH2Upgrade(Exchange<?> exchange) | |
| setProxy | back to summary |
|---|---|
| public void setProxy(Proxy proxy) Implements jdk.
| |
| setSystemHeader | back to summary |
|---|---|
| public void setSystemHeader(String name, String value) Implements jdk.
| |
| setUserSetAuthFlag | back to summary |
|---|---|
| public void setUserSetAuthFlag(Authenticator. These flags are set if the user set an Authorization or Proxy-Authorization header overriding headers produced by an Authenticator that was also set The values are checked in the AuthenticationFilter which tells the library to return whatever response received to the user instead of causing request to be resent, in case of error. | |
| timeout | back to summary |
|---|---|
| public Optional Implements abstract java. Doc from java. Returns an
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| uri | back to summary |
|---|---|
| public URI uri() Implements abstract java. Doc from java. Returns this request's
| |
| userAgent | back to summary |
|---|---|
| private static String userAgent() | |
| version | back to summary |
|---|---|
| public Optional Implements abstract java. Doc from java. Returns an
| |