src/java.net.http/share/classes/java/net/http/HttpResponse.java
branchhttp-client-branch
changeset 56260 df3f97c19c1d
parent 56257 82a9340bdda6
child 56405 3642d0ef7755
equal deleted inserted replaced
56259:cc67f25159cb 56260:df3f97c19c1d
    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      */