src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpRequestImpl.java
branchhttp-client-branch
changeset 56054 352e845ae744
parent 56041 b4b5e09ef3cc
child 56070 66a9c3185028
--- a/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpRequestImpl.java	Wed Jan 31 15:52:35 2018 +0000
+++ b/src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/HttpRequestImpl.java	Wed Jan 31 16:18:41 2018 +0000
@@ -165,6 +165,10 @@
         this.version = Optional.of(HttpClient.Version.HTTP_1_1);
     }
 
+    final boolean isConnect() {
+        return "CONNECT".equalsIgnoreCase(method);
+    }
+
     /**
      * Creates a HttpRequestImpl from the given set of Headers and the associated
      * "parent" request. Fields not taken from the headers are taken from the