abstract class jdk.internal.net.http.HttpConnection implements java.io.Closeable
minor version: 0
major version: 59
flags: flags: (0x0420) ACC_SUPER, ACC_ABSTRACT
this_class: jdk.internal.net.http.HttpConnection
super_class: java.lang.Object
{
final jdk.internal.net.http.common.Logger debug;
descriptor: Ljdk/internal/net/http/common/Logger;
flags: (0x0010) ACC_FINAL
static final jdk.internal.net.http.common.Logger DEBUG_LOGGER;
descriptor: Ljdk/internal/net/http/common/Logger;
flags: (0x0018) ACC_STATIC, ACC_FINAL
final java.net.InetSocketAddress address;
descriptor: Ljava/net/InetSocketAddress;
flags: (0x0010) ACC_FINAL
private final jdk.internal.net.http.HttpClientImpl client;
descriptor: Ljdk/internal/net/http/HttpClientImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.HttpConnection$TrailingOperations trailingOperations;
descriptor: Ljdk/internal/net/http/HttpConnection$TrailingOperations;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.function.Predicate<java.lang.String> testRequiredHTTP2TLSVersion;
descriptor: Ljava/util/function/Predicate;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/function/Predicate<Ljava/lang/String;>;
java.lang.String dbgTag;
descriptor: Ljava/lang/String;
flags: (0x0000)
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Ljdk/internal/net/http/HttpConnection;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.internal.net.http.HttpConnection.$assertionsDisabled:Z
3: invokedynamic get()Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/internal/net/http/HttpConnection.lambda$1()Ljava/lang/String; (6)
()Ljava/lang/String;
getstatic jdk.internal.net.http.common.Utils.DEBUG:Z
4: invokestatic jdk.internal.net.http.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljdk/internal/net/http/common/Logger;
putstatic jdk.internal.net.http.HttpConnection.DEBUG_LOGGER:Ljdk/internal/net/http/common/Logger;
5: invokedynamic test()Ljava/util/function/Predicate;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Z
jdk/internal/net/http/HttpConnection.lambda$2(Ljava/lang/String;)Z (6)
(Ljava/lang/String;)Z
putstatic jdk.internal.net.http.HttpConnection.testRequiredHTTP2TLSVersion:Ljava/util/function/Predicate;
6: return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.net.InetSocketAddress, jdk.internal.net.http.HttpClientImpl);
descriptor: (Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokedynamic get(Ljdk/internal/net/http/HttpConnection;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/internal/net/http/HttpConnection.dbgString()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.internal.net.http.common.Utils.DEBUG:Z
invokestatic jdk.internal.net.http.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljdk/internal/net/http/common/Logger;
putfield jdk.internal.net.http.HttpConnection.debug:Ljdk/internal/net/http/common/Logger;
2: aload 0
aload 1
putfield jdk.internal.net.http.HttpConnection.address:Ljava/net/InetSocketAddress;
3: aload 0
aload 2
putfield jdk.internal.net.http.HttpConnection.client:Ljdk/internal/net/http/HttpClientImpl;
4: aload 0
new jdk.internal.net.http.HttpConnection$TrailingOperations
dup
invokespecial jdk.internal.net.http.HttpConnection$TrailingOperations.<init>:()V
putfield jdk.internal.net.http.HttpConnection.trailingOperations:Ljdk/internal/net/http/HttpConnection$TrailingOperations;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/HttpConnection;
0 6 1 address Ljava/net/InetSocketAddress;
0 6 2 client Ljdk/internal/net/http/HttpClientImpl;
MethodParameters:
Name Flags
address
client
final void addTrailingOperation(java.util.concurrent.CompletionStage<?>);
descriptor: (Ljava/util/concurrent/CompletionStage;)V
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.HttpConnection.trailingOperations:Ljdk/internal/net/http/HttpConnection$TrailingOperations;
aload 1
invokevirtual jdk.internal.net.http.HttpConnection$TrailingOperations.add:(Ljava/util/concurrent/CompletionStage;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/HttpConnection;
0 2 1 cf Ljava/util/concurrent/CompletionStage<*>;
Signature: (Ljava/util/concurrent/CompletionStage<*>;)V
MethodParameters:
Name Flags
cf
final jdk.internal.net.http.HttpClientImpl client();
descriptor: ()Ljdk/internal/net/http/HttpClientImpl;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpConnection.client:Ljdk/internal/net/http/HttpClientImpl;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpConnection;
public abstract java.util.concurrent.CompletableFuture<java.lang.Void> connectAsync(jdk.internal.net.http.Exchange<?>);
descriptor: (Ljdk/internal/net/http/Exchange;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: (Ljdk/internal/net/http/Exchange<*>;)Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
MethodParameters:
Name Flags
exchange
public abstract java.util.concurrent.CompletableFuture<java.lang.Void> finishConnect();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
abstract boolean connected();
descriptor: ()Z
flags: (0x0400) ACC_ABSTRACT
abstract boolean isSecure();
descriptor: ()Z
flags: (0x0400) ACC_ABSTRACT
abstract boolean isProxied();
descriptor: ()Z
flags: (0x0400) ACC_ABSTRACT
final boolean isOpen();
descriptor: ()Z
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.net.http.HttpConnection.channel:()Ljava/nio/channels/SocketChannel;
invokevirtual java.nio.channels.SocketChannel.isOpen:()Z
ifeq 3
1: aload 0
invokevirtual jdk.internal.net.http.HttpConnection.connected:()Z
ifeq 2
aload 0
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/common/FlowTube;
invokeinterface jdk.internal.net.http.common.FlowTube.isFinished:()Z
ifne 3
2: StackMap locals:
StackMap stack:
iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/HttpConnection;
abstract jdk.internal.net.http.HttpConnection$HttpPublisher publisher();
descriptor: ()Ljdk/internal/net/http/HttpConnection$HttpPublisher;
flags: (0x0400) ACC_ABSTRACT
private static final boolean hasRequiredHTTP2TLSVersion(java.net.http.HttpClient);
descriptor: (Ljava/net/http/HttpClient;)Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.net.http.HttpClient.sslParameters:()Ljavax/net/ssl/SSLParameters;
invokevirtual javax.net.ssl.SSLParameters.getProtocols:()[Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
invokestatic java.util.Arrays.stream:([Ljava/lang/Object;)Ljava/util/stream/Stream;
getstatic jdk.internal.net.http.HttpConnection.testRequiredHTTP2TLSVersion:Ljava/util/function/Predicate;
invokeinterface java.util.stream.Stream.filter:(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;
invokeinterface java.util.stream.Stream.findAny:()Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ireturn
3: StackMap locals: java.lang.String[]
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 client Ljava/net/http/HttpClient;
1 4 1 protos [Ljava/lang/String;
MethodParameters:
Name Flags
client
public static jdk.internal.net.http.HttpConnection getConnection(java.net.InetSocketAddress, jdk.internal.net.http.HttpClientImpl, jdk.internal.net.http.HttpRequestImpl, java.net.http.HttpClient$Version);
descriptor: (Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;Ljdk/internal/net/http/HttpRequestImpl;Ljava/net/http/HttpClient$Version;)Ljdk/internal/net/http/HttpConnection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual jdk.internal.net.http.HttpRequestImpl.proxy:()Ljava/net/InetSocketAddress;
invokestatic jdk.internal.net.http.common.Utils.resolveAddress:(Ljava/net/InetSocketAddress;)Ljava/net/InetSocketAddress;
astore 4
start local 4 1: aconst_null
astore 5
start local 5 2: aload 2
invokevirtual jdk.internal.net.http.HttpRequestImpl.secure:()Z
istore 6
start local 6 3: aload 1
invokevirtual jdk.internal.net.http.HttpClientImpl.connectionPool:()Ljdk/internal/net/http/ConnectionPool;
astore 7
start local 7 4: iload 6
ifne 14
5: aload 7
iconst_0
aload 0
aload 4
invokevirtual jdk.internal.net.http.ConnectionPool.getConnection:(ZLjava/net/InetSocketAddress;Ljava/net/InetSocketAddress;)Ljdk/internal/net/http/HttpConnection;
astore 5
6: aload 5
ifnull 13
aload 5
invokevirtual jdk.internal.net.http.HttpConnection.isOpen:()Z
ifeq 13
7: aload 5
astore 8
start local 8 8: getstatic jdk.internal.net.http.HttpConnection.DEBUG_LOGGER:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 12
9: getstatic jdk.internal.net.http.HttpConnection.DEBUG_LOGGER:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 8
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
10: ldc ": plain connection retrieved from HTTP/1.1 pool"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
12: StackMap locals: java.net.InetSocketAddress jdk.internal.net.http.HttpClientImpl jdk.internal.net.http.HttpRequestImpl java.net.http.HttpClient$Version java.net.InetSocketAddress jdk.internal.net.http.HttpConnection int jdk.internal.net.http.ConnectionPool jdk.internal.net.http.HttpConnection
StackMap stack:
aload 5
areturn
end local 8 13: StackMap locals:
StackMap stack:
aload 0
aload 4
aload 2
aload 1
invokestatic jdk.internal.net.http.HttpConnection.getPlainConnection:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpRequestImpl;Ljdk/internal/net/http/HttpClientImpl;)Ljdk/internal/net/http/HttpConnection;
areturn
14: StackMap locals:
StackMap stack:
aload 3
getstatic java.net.http.HttpClient$Version.HTTP_2:Ljava/net/http/HttpClient$Version;
if_acmpeq 16
15: aload 7
iconst_1
aload 0
aload 4
invokevirtual jdk.internal.net.http.ConnectionPool.getConnection:(ZLjava/net/InetSocketAddress;Ljava/net/InetSocketAddress;)Ljdk/internal/net/http/HttpConnection;
astore 5
16: StackMap locals:
StackMap stack:
aload 5
ifnull 23
aload 5
invokevirtual jdk.internal.net.http.HttpConnection.isOpen:()Z
ifeq 23
17: aload 5
astore 8
start local 8 18: getstatic jdk.internal.net.http.HttpConnection.DEBUG_LOGGER:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 22
19: getstatic jdk.internal.net.http.HttpConnection.DEBUG_LOGGER:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 8
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
20: ldc ": SSL connection retrieved from HTTP/1.1 pool"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
22: StackMap locals: jdk.internal.net.http.HttpConnection
StackMap stack:
aload 5
areturn
end local 8 23: StackMap locals:
StackMap stack:
aconst_null
astore 8
start local 8 24: aload 3
getstatic java.net.http.HttpClient$Version.HTTP_2:Ljava/net/http/HttpClient$Version;
if_acmpne 26
aload 1
invokestatic jdk.internal.net.http.HttpConnection.hasRequiredHTTP2TLSVersion:(Ljava/net/http/HttpClient;)Z
ifeq 26
25: iconst_2
anewarray java.lang.String
dup
iconst_0
ldc "h2"
aastore
dup
iconst_1
ldc "http/1.1"
aastore
astore 8
26: StackMap locals: java.lang.String[]
StackMap stack:
aload 0
aload 4
aload 8
aload 2
aload 1
invokestatic jdk.internal.net.http.HttpConnection.getSSLConnection:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;[Ljava/lang/String;Ljdk/internal/net/http/HttpRequestImpl;Ljdk/internal/net/http/HttpClientImpl;)Ljdk/internal/net/http/HttpConnection;
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 addr Ljava/net/InetSocketAddress;
0 27 1 client Ljdk/internal/net/http/HttpClientImpl;
0 27 2 request Ljdk/internal/net/http/HttpRequestImpl;
0 27 3 version Ljava/net/http/HttpClient$Version;
1 27 4 proxy Ljava/net/InetSocketAddress;
2 27 5 c Ljdk/internal/net/http/HttpConnection;
3 27 6 secure Z
4 27 7 pool Ljdk/internal/net/http/ConnectionPool;
8 13 8 conn Ljdk/internal/net/http/HttpConnection;
18 23 8 conn Ljdk/internal/net/http/HttpConnection;
24 27 8 alpn [Ljava/lang/String;
MethodParameters:
Name Flags
addr
client
request
version
private static jdk.internal.net.http.HttpConnection getSSLConnection(java.net.InetSocketAddress, java.net.InetSocketAddress, java.lang.String[], jdk.internal.net.http.HttpRequestImpl, jdk.internal.net.http.HttpClientImpl);
descriptor: (Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;[Ljava/lang/String;Ljdk/internal/net/http/HttpRequestImpl;Ljdk/internal/net/http/HttpClientImpl;)Ljdk/internal/net/http/HttpConnection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
ifnull 4
1: new jdk.internal.net.http.AsyncSSLTunnelConnection
dup
aload 0
aload 4
aload 2
aload 1
2: aload 3
invokestatic jdk.internal.net.http.HttpConnection.proxyTunnelHeaders:(Ljdk/internal/net/http/HttpRequestImpl;)Ljava/net/http/HttpHeaders;
3: invokespecial jdk.internal.net.http.AsyncSSLTunnelConnection.<init>:(Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;[Ljava/lang/String;Ljava/net/InetSocketAddress;Ljava/net/http/HttpHeaders;)V
areturn
4: StackMap locals:
StackMap stack:
new jdk.internal.net.http.AsyncSSLConnection
dup
aload 0
aload 4
aload 2
invokespecial jdk.internal.net.http.AsyncSSLConnection.<init>:(Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;[Ljava/lang/String;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 addr Ljava/net/InetSocketAddress;
0 5 1 proxy Ljava/net/InetSocketAddress;
0 5 2 alpn [Ljava/lang/String;
0 5 3 request Ljdk/internal/net/http/HttpRequestImpl;
0 5 4 client Ljdk/internal/net/http/HttpClientImpl;
MethodParameters:
Name Flags
addr
proxy
alpn
request
client
java.util.function.BiPredicate<java.lang.String, java.lang.String> headerFilter(jdk.internal.net.http.HttpRequestImpl);
descriptor: (Ljdk/internal/net/http/HttpRequestImpl;)Ljava/util/function/BiPredicate;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.net.http.HttpConnection.isTunnel:()Z
ifeq 3
1: getstatic jdk.internal.net.http.HttpConnection.$assertionsDisabled:Z
ifne 2
aload 1
invokevirtual jdk.internal.net.http.HttpRequestImpl.isConnect:()Z
ifeq 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.common.Utils.NO_PROXY_HEADERS_FILTER:Ljava/util/function/BiPredicate;
areturn
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.net.http.HttpRequestImpl.isConnect:()Z
ifeq 6
4: getstatic jdk.internal.net.http.HttpConnection.$assertionsDisabled:Z
ifne 5
aload 1
invokevirtual jdk.internal.net.http.HttpRequestImpl.proxy:()Ljava/net/InetSocketAddress;
ifnull 5
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.common.Utils.PROXY_TUNNEL_FILTER:Ljava/util/function/BiPredicate;
areturn
6: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.internal.net.http.HttpRequestImpl.proxy:()Ljava/net/InetSocketAddress;
ifnull 8
7: getstatic jdk.internal.net.http.common.Utils.PROXY_FILTER:Ljava/util/function/BiPredicate;
areturn
8: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.common.Utils.NO_PROXY_HEADERS_FILTER:Ljava/util/function/BiPredicate;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/net/http/HttpConnection;
0 9 1 request Ljdk/internal/net/http/HttpRequestImpl;
Signature: (Ljdk/internal/net/http/HttpRequestImpl;)Ljava/util/function/BiPredicate<Ljava/lang/String;Ljava/lang/String;>;
MethodParameters:
Name Flags
request
private static java.net.http.HttpHeaders (jdk.internal.net.http.HttpRequestImpl);
descriptor: (Ljdk/internal/net/http/HttpRequestImpl;)Ljava/net/http/HttpHeaders;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.util.TreeMap
dup
getstatic java.lang.String.CASE_INSENSITIVE_ORDER:Ljava/util/Comparator;
invokespecial java.util.TreeMap.<init>:(Ljava/util/Comparator;)V
astore 1
start local 1 1: aload 1
aload 0
invokevirtual jdk.internal.net.http.HttpRequestImpl.getSystemHeadersBuilder:()Ljdk/internal/net/http/common/HttpHeadersBuilder;
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.map:()Ljava/util/Map;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
2: aload 1
aload 0
invokevirtual jdk.internal.net.http.HttpRequestImpl.headers:()Ljava/net/http/HttpHeaders;
invokevirtual java.net.http.HttpHeaders.map:()Ljava/util/Map;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: aload 1
getstatic jdk.internal.net.http.common.Utils.PROXY_TUNNEL_FILTER:Ljava/util/function/BiPredicate;
invokestatic java.net.http.HttpHeaders.of:(Ljava/util/Map;Ljava/util/function/BiPredicate;)Ljava/net/http/HttpHeaders;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 request Ljdk/internal/net/http/HttpRequestImpl;
1 4 1 combined Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
MethodParameters:
Name Flags
request
private static jdk.internal.net.http.HttpConnection getPlainConnection(java.net.InetSocketAddress, java.net.InetSocketAddress, jdk.internal.net.http.HttpRequestImpl, jdk.internal.net.http.HttpClientImpl);
descriptor: (Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpRequestImpl;Ljdk/internal/net/http/HttpClientImpl;)Ljdk/internal/net/http/HttpConnection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 2
invokevirtual jdk.internal.net.http.HttpRequestImpl.isWebSocket:()Z
ifeq 4
aload 1
ifnull 4
1: new jdk.internal.net.http.PlainTunnelingConnection
dup
aload 0
aload 1
aload 3
2: aload 2
invokestatic jdk.internal.net.http.HttpConnection.proxyTunnelHeaders:(Ljdk/internal/net/http/HttpRequestImpl;)Ljava/net/http/HttpHeaders;
3: invokespecial jdk.internal.net.http.PlainTunnelingConnection.<init>:(Ljava/net/InetSocketAddress;Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;Ljava/net/http/HttpHeaders;)V
areturn
4: StackMap locals:
StackMap stack:
aload 1
ifnonnull 6
5: new jdk.internal.net.http.PlainHttpConnection
dup
aload 0
aload 3
invokespecial jdk.internal.net.http.PlainHttpConnection.<init>:(Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;)V
areturn
6: StackMap locals:
StackMap stack:
new jdk.internal.net.http.PlainProxyConnection
dup
aload 1
aload 3
invokespecial jdk.internal.net.http.PlainProxyConnection.<init>:(Ljava/net/InetSocketAddress;Ljdk/internal/net/http/HttpClientImpl;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 addr Ljava/net/InetSocketAddress;
0 7 1 proxy Ljava/net/InetSocketAddress;
0 7 2 request Ljdk/internal/net/http/HttpRequestImpl;
0 7 3 client Ljdk/internal/net/http/HttpClientImpl;
MethodParameters:
Name Flags
addr
proxy
request
client
void (java.net.http.HttpHeaders);
descriptor: (Ljava/net/http/HttpHeaders;)V
flags: (0x0000)
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 3
1: aload 0
invokevirtual jdk.internal.net.http.HttpConnection.close:()V
2: return
3: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.HttpConnection.isOpen:()Z
ifne 5
4: return
5: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.HttpConnection.client:()Ljdk/internal/net/http/HttpClientImpl;
astore 2
start local 2 6: aload 2
ifnonnull 9
7: aload 0
invokevirtual jdk.internal.net.http.HttpConnection.close:()V
8: return
9: StackMap locals: jdk.internal.net.http.HttpClientImpl
StackMap stack:
aload 2
invokevirtual jdk.internal.net.http.HttpClientImpl.connectionPool:()Ljdk/internal/net/http/ConnectionPool;
astore 3
start local 3 10: aload 1
ldc "Connection"
invokevirtual java.net.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
11: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
jdk/internal/net/http/HttpConnection.lambda$3(Ljava/lang/String;)Ljava/lang/Boolean; (6)
(Ljava/lang/String;)Ljava/lang/Boolean;
invokevirtual java.util.Optional.map:(Ljava/util/function/Function;)Ljava/util/Optional;
12: iconst_1
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Boolean
invokevirtual java.lang.Boolean.booleanValue:()Z
13: istore 4
start local 4 14: iload 4
ifeq 18
15: ldc "Returning connection to the pool: {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
invokestatic jdk.internal.net.http.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
16: aload 3
aload 0
invokevirtual jdk.internal.net.http.ConnectionPool.returnToPool:(Ljdk/internal/net/http/HttpConnection;)V
17: goto 19
18: StackMap locals: jdk.internal.net.http.ConnectionPool int
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.HttpConnection.close:()V
19: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Ljdk/internal/net/http/HttpConnection;
0 20 1 hdrs Ljava/net/http/HttpHeaders;
6 20 2 client Ljdk/internal/net/http/HttpClientImpl;
10 20 3 pool Ljdk/internal/net/http/ConnectionPool;
14 20 4 keepAlive Z
MethodParameters:
Name Flags
hdrs
boolean isTunnel();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpConnection;
abstract java.nio.channels.SocketChannel channel();
descriptor: ()Ljava/nio/channels/SocketChannel;
flags: (0x0400) ACC_ABSTRACT
final java.net.InetSocketAddress address();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpConnection.address:Ljava/net/InetSocketAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpConnection;
abstract jdk.internal.net.http.ConnectionPool$CacheKey cacheKey();
descriptor: ()Ljdk/internal/net/http/ConnectionPool$CacheKey;
flags: (0x0400) ACC_ABSTRACT
public abstract void close();
descriptor: ()V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
abstract jdk.internal.net.http.common.FlowTube getConnectionFlow();
descriptor: ()Ljdk/internal/net/http/common/FlowTube;
flags: (0x0400) ACC_ABSTRACT
final java.lang.String dbgString();
descriptor: ()Ljava/lang/String;
flags: (0x0010) ACC_FINAL
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.net.http.HttpConnection.getConnectionFlow:()Ljdk/internal/net/http/common/FlowTube;
astore 1
start local 1 1: aload 0
getfield jdk.internal.net.http.HttpConnection.dbgTag:Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnonnull 5
aload 1
ifnull 5
3: aload 0
new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ")"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
dup
astore 2
putfield jdk.internal.net.http.HttpConnection.dbgTag:Ljava/lang/String;
4: goto 7
StackMap locals: jdk.internal.net.http.common.FlowTube java.lang.String
StackMap stack:
5: aload 2
ifnonnull 7
6: new java.lang.StringBuilder
dup
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "(?)"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
7: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/http/HttpConnection;
1 8 1 flow Ljdk/internal/net/http/common/FlowTube;
2 8 2 tag Ljava/lang/String;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "HttpConnection: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual jdk.internal.net.http.HttpConnection.channel:()Ljava/nio/channels/SocketChannel;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpConnection;
private static java.lang.String lambda$1();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "HttpConnection(SocketTube(?))"
areturn
LocalVariableTable:
Start End Slot Name Signature
private static boolean lambda$2(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "TLSv1.2"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
aload 0
ldc "TLSv1.3"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 proto Ljava/lang/String;
private static java.lang.Boolean lambda$3(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Boolean;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "close"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 s Ljava/lang/String;
}
SourceFile: "HttpConnection.java"
NestMembers:
jdk.internal.net.http.HttpConnection$HttpPublisher jdk.internal.net.http.HttpConnection$PlainHttpPublisher jdk.internal.net.http.HttpConnection$PlainHttpPublisher$HttpWriteSubscription jdk.internal.net.http.HttpConnection$TrailingOperations
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Version = java.net.http.HttpClient$Version of java.net.http.HttpClient
CacheKey = jdk.internal.net.http.ConnectionPool$CacheKey of jdk.internal.net.http.ConnectionPool
abstract HttpPublisher = jdk.internal.net.http.HttpConnection$HttpPublisher of jdk.internal.net.http.HttpConnection
final PlainHttpPublisher = jdk.internal.net.http.HttpConnection$PlainHttpPublisher of jdk.internal.net.http.HttpConnection
private final TrailingOperations = jdk.internal.net.http.HttpConnection$TrailingOperations of jdk.internal.net.http.HttpConnection