src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpRequest.java
branchhttp-client-branch
changeset 55831 deaf861d440e
parent 55825 5928d92183d2
child 55833 3e1f7cdef8a5
equal deleted inserted replaced
55830:15c2fc44b0cf 55831:deaf861d440e
   185  *
   185  *
   186  * <p> <a id="securitychecks"></a><b>Security checks</b></a>
   186  * <p> <a id="securitychecks"></a><b>Security checks</b></a>
   187  *
   187  *
   188  * <p> If a security manager is present then security checks are performed by
   188  * <p> If a security manager is present then security checks are performed by
   189  * the HTTP Client's sending methods. An appropriate {@link URLPermission} is
   189  * the HTTP Client's sending methods. An appropriate {@link URLPermission} is
   190  * required to access the destination origin server, and proxy server if one has
   190  * required to access the destination server, and proxy server if one has
   191  * been configured. The {@code URLPermission} form used to access proxies uses a
   191  * been configured. The {@code URLPermission} form used to access proxies uses a
   192  * method parameter of {@code "CONNECT"} (for all kinds of proxying) and a URL
   192  * method parameter of {@code "CONNECT"} (for all kinds of proxying) and a URL
   193  * string  of the form {@code "socket://host:port"} where host and port specify
   193  * string  of the form {@code "socket://host:port"} where host and port specify
   194  * the proxy's address.
   194  * the proxy's address.
   195  *
   195  *
   585                 + uri().hashCode()
   585                 + uri().hashCode()
   586                 + headers().hashCode();
   586                 + headers().hashCode();
   587     }
   587     }
   588 
   588 
   589     /**
   589     /**
   590      * A request body handler which sends no request body.
   590      * A request body publisher which sends no request body.
   591      *
   591      *
   592      * @return a BodyPublisher
   592      * @return a BodyPublisher which completes immediately and sends
       
   593      *         no request body.
   593      */
   594      */
   594     public static BodyPublisher noBody() {
   595     public static BodyPublisher noBody() {
   595         return new RequestPublishers.EmptyPublisher();
   596         return new RequestPublishers.EmptyPublisher();
   596     }
   597     }
   597 
   598