equal
deleted
inserted
replaced
95 public int statusCode(); |
95 public int statusCode(); |
96 |
96 |
97 /** |
97 /** |
98 * Returns the {@link HttpRequest} corresponding to this response. |
98 * Returns the {@link HttpRequest} corresponding to this response. |
99 * |
99 * |
100 * <p> This may not be the original request provided by the caller, |
100 * <p> The returned {@code HttpRequest} may not be the initiating request |
101 * for example, if that request was redirected. |
101 * provided when {@linkplain HttpClient#send(HttpRequest, BodyHandler) |
|
102 * sending}. For example, if the initiating request was redirected, then the |
|
103 * request returned by this method will have the redirected URI, which will |
|
104 * be different from the initiating request URI. |
102 * |
105 * |
103 * @see #previousResponse() |
106 * @see #previousResponse() |
104 * |
107 * |
105 * @return the request |
108 * @return the request |
106 */ |
109 */ |