public class jdk.internal.net.http.HttpRequestImpl extends java.net.http.HttpRequest implements jdk.internal.net.http.websocket.WebSocketRequest
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.net.http.HttpRequestImpl
super_class: java.net.http.HttpRequest
{
private final java.net.http.HttpHeaders ;
descriptor: Ljava/net/http/HttpHeaders;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final jdk.internal.net.http.common.HttpHeadersBuilder ;
descriptor: Ljdk/internal/net/http/common/HttpHeadersBuilder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.URI uri;
descriptor: Ljava/net/URI;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.net.Proxy proxy;
descriptor: Ljava/net/Proxy;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.net.InetSocketAddress authority;
descriptor: Ljava/net/InetSocketAddress;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String method;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final java.net.http.HttpRequest$BodyPublisher requestPublisher;
descriptor: Ljava/net/http/HttpRequest$BodyPublisher;
flags: (0x0010) ACC_FINAL
final boolean secure;
descriptor: Z
flags: (0x0010) ACC_FINAL
final boolean expectContinue;
descriptor: Z
flags: (0x0010) ACC_FINAL
private volatile boolean isWebSocket;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile java.security.AccessControlContext acc;
descriptor: Ljava/security/AccessControlContext;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.time.Duration timeout;
descriptor: Ljava/time/Duration;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.Optional<java.net.http.HttpClient$Version> version;
descriptor: Ljava/util/Optional;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Optional<Ljava/net/http/HttpClient$Version;>;
public static final java.lang.String USER_AGENT;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
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=1, locals=0, args_size=0
0: ldc Ljdk/internal/net/http/HttpRequestImpl;
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.HttpRequestImpl.$assertionsDisabled:Z
3: invokestatic jdk.internal.net.http.HttpRequestImpl.userAgent:()Ljava/lang/String;
putstatic jdk.internal.net.http.HttpRequestImpl.USER_AGENT:Ljava/lang/String;
return
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String userAgent();
descriptor: ()Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=0
0: invokedynamic run()Ljava/security/PrivilegedAction;
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/HttpRequestImpl.lambda$0()Ljava/lang/String; (6)
()Ljava/lang/String;
astore 0
start local 0 1: aload 0
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 1
start local 1 2: new java.lang.StringBuilder
dup
ldc "Java-http-client/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 3 0 pa Ljava/security/PrivilegedAction<Ljava/lang/String;>;
2 3 1 version Ljava/lang/String;
public void <init>(jdk.internal.net.http.HttpRequestBuilderImpl);
descriptor: (Ljdk/internal/net/http/HttpRequestBuilderImpl;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.net.http.HttpRequest.<init>:()V
1: aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.method:()Ljava/lang/String;
astore 2
start local 2 2: aload 0
aload 2
ifnonnull 3
ldc "GET"
goto 4
StackMap locals: jdk.internal.net.http.HttpRequestImpl jdk.internal.net.http.HttpRequestBuilderImpl java.lang.String
StackMap stack: jdk.internal.net.http.HttpRequestImpl
3: aload 2
StackMap locals: jdk.internal.net.http.HttpRequestImpl jdk.internal.net.http.HttpRequestBuilderImpl java.lang.String
StackMap stack: jdk.internal.net.http.HttpRequestImpl java.lang.String
4: putfield jdk.internal.net.http.HttpRequestImpl.method:Ljava/lang/String;
5: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.headersBuilder:()Ljdk/internal/net/http/common/HttpHeadersBuilder;
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.map:()Ljava/util/Map;
getstatic jdk.internal.net.http.common.Utils.ALLOWED_HEADERS:Ljava/util/function/BiPredicate;
invokestatic java.net.http.HttpHeaders.of:(Ljava/util/Map;Ljava/util/function/BiPredicate;)Ljava/net/http/HttpHeaders;
putfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
6: aload 0
new jdk.internal.net.http.common.HttpHeadersBuilder
dup
invokespecial jdk.internal.net.http.common.HttpHeadersBuilder.<init>:()V
putfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
7: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.uri:()Ljava/net/URI;
putfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
8: getstatic jdk.internal.net.http.HttpRequestImpl.$assertionsDisabled:Z
ifne 9
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
ifnonnull 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
10: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.expectContinue:()Z
putfield jdk.internal.net.http.HttpRequestImpl.expectContinue:Z
11: aload 0
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
ldc "https"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putfield jdk.internal.net.http.HttpRequestImpl.secure:Z
12: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.bodyPublisher:()Ljava/net/http/HttpRequest$BodyPublisher;
putfield jdk.internal.net.http.HttpRequestImpl.requestPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
13: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.timeout:()Ljava/time/Duration;
putfield jdk.internal.net.http.HttpRequestImpl.timeout:Ljava/time/Duration;
14: aload 0
aload 1
invokevirtual jdk.internal.net.http.HttpRequestBuilderImpl.version:()Ljava/util/Optional;
putfield jdk.internal.net.http.HttpRequestImpl.version:Ljava/util/Optional;
15: aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.authority:Ljava/net/InetSocketAddress;
16: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/internal/net/http/HttpRequestImpl;
0 17 1 builder Ljdk/internal/net/http/HttpRequestBuilderImpl;
2 17 2 method Ljava/lang/String;
MethodParameters:
Name Flags
builder
public void <init>(java.net.http.HttpRequest, java.net.ProxySelector);
descriptor: (Ljava/net/http/HttpRequest;Ljava/net/ProxySelector;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.net.http.HttpRequest.<init>:()V
1: aload 1
invokevirtual java.net.http.HttpRequest.method:()Ljava/lang/String;
astore 3
start local 3 2: aload 3
ifnull 10
aload 3
invokestatic jdk.internal.net.http.common.Utils.isValidName:(Ljava/lang/String;)Z
ifne 10
3: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "illegal method \""
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: aload 3
ldc "\n"
ldc "\\n"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
5: ldc "\r"
ldc "\\r"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
6: ldc "\t"
ldc "\\t"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
7: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc "\""
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: jdk.internal.net.http.HttpRequestImpl java.net.http.HttpRequest java.net.ProxySelector java.lang.String
StackMap stack:
aload 1
invokevirtual java.net.http.HttpRequest.uri:()Ljava/net/URI;
11: ldc "uri must be non null"
12: invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
checkcast java.net.URI
astore 4
start local 4 13: aload 1
invokevirtual java.net.http.HttpRequest.timeout:()Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.time.Duration
astore 5
start local 5 14: aload 0
aload 3
ifnonnull 15
ldc "GET"
goto 16
StackMap locals: jdk.internal.net.http.HttpRequestImpl java.net.http.HttpRequest java.net.ProxySelector java.lang.String java.net.URI java.time.Duration
StackMap stack: jdk.internal.net.http.HttpRequestImpl
15: aload 3
StackMap locals: jdk.internal.net.http.HttpRequestImpl java.net.http.HttpRequest java.net.ProxySelector java.lang.String java.net.URI java.time.Duration
StackMap stack: jdk.internal.net.http.HttpRequestImpl java.lang.String
16: putfield jdk.internal.net.http.HttpRequestImpl.method:Ljava/lang/String;
17: aload 0
aload 1
invokevirtual java.net.http.HttpRequest.headers:()Ljava/net/http/HttpHeaders;
invokevirtual java.net.http.HttpHeaders.map:()Ljava/util/Map;
getstatic jdk.internal.net.http.common.Utils.VALIDATE_USER_HEADER:Ljava/util/function/BiPredicate;
invokestatic java.net.http.HttpHeaders.of:(Ljava/util/Map;Ljava/util/function/BiPredicate;)Ljava/net/http/HttpHeaders;
putfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
18: aload 1
instanceof jdk.internal.net.http.HttpRequestImpl
ifeq 25
19: aload 0
aload 1
checkcast jdk.internal.net.http.HttpRequestImpl
getfield jdk.internal.net.http.HttpRequestImpl.isWebSocket:Z
putfield jdk.internal.net.http.HttpRequestImpl.isWebSocket:Z
20: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.isWebSocket:Z
ifeq 23
21: aload 0
aload 1
checkcast jdk.internal.net.http.HttpRequestImpl
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
putfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
22: goto 28
23: StackMap locals:
StackMap stack:
aload 0
new jdk.internal.net.http.common.HttpHeadersBuilder
dup
invokespecial jdk.internal.net.http.common.HttpHeadersBuilder.<init>:()V
putfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
24: goto 28
25: StackMap locals:
StackMap stack:
aload 4
invokestatic jdk.internal.net.http.HttpRequestBuilderImpl.checkURI:(Ljava/net/URI;)V
26: aload 5
invokestatic jdk.internal.net.http.HttpRequestImpl.checkTimeout:(Ljava/time/Duration;)V
27: aload 0
new jdk.internal.net.http.common.HttpHeadersBuilder
dup
invokespecial jdk.internal.net.http.common.HttpHeadersBuilder.<init>:()V
putfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
28: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
ldc "User-Agent"
invokevirtual java.net.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifne 30
29: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
ldc "User-Agent"
getstatic jdk.internal.net.http.HttpRequestImpl.USER_AGENT:Ljava/lang/String;
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
30: StackMap locals:
StackMap stack:
aload 0
aload 4
putfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
31: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.isWebSocket:Z
ifeq 34
32: aload 0
aload 1
checkcast jdk.internal.net.http.HttpRequestImpl
getfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
putfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
33: goto 37
34: StackMap locals:
StackMap stack:
aload 2
ifnull 36
35: aload 0
aload 2
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
invokestatic jdk.internal.net.http.HttpRequestImpl.retrieveProxy:(Ljava/net/ProxySelector;Ljava/net/URI;)Ljava/net/Proxy;
putfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
goto 37
36: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
37: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.net.http.HttpRequest.expectContinue:()Z
putfield jdk.internal.net.http.HttpRequestImpl.expectContinue:Z
38: aload 0
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
ldc "https"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putfield jdk.internal.net.http.HttpRequestImpl.secure:Z
39: aload 0
aload 1
invokevirtual java.net.http.HttpRequest.bodyPublisher:()Ljava/util/Optional;
aconst_null
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.http.HttpRequest$BodyPublisher
putfield jdk.internal.net.http.HttpRequestImpl.requestPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
40: aload 0
aload 5
putfield jdk.internal.net.http.HttpRequestImpl.timeout:Ljava/time/Duration;
41: aload 0
aload 1
invokevirtual java.net.http.HttpRequest.version:()Ljava/util/Optional;
putfield jdk.internal.net.http.HttpRequestImpl.version:Ljava/util/Optional;
42: aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.authority:Ljava/net/InetSocketAddress;
43: return
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 44 0 this Ljdk/internal/net/http/HttpRequestImpl;
0 44 1 request Ljava/net/http/HttpRequest;
0 44 2 ps Ljava/net/ProxySelector;
2 44 3 method Ljava/lang/String;
13 44 4 requestURI Ljava/net/URI;
14 44 5 timeout Ljava/time/Duration;
MethodParameters:
Name Flags
request
ps
private static void checkTimeout(java.time.Duration);
descriptor: (Ljava/time/Duration;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
ifnull 3
1: aload 0
invokevirtual java.time.Duration.isNegative:()Z
ifne 2
getstatic java.time.Duration.ZERO:Ljava/time/Duration;
aload 0
invokevirtual java.time.Duration.equals:(Ljava/lang/Object;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid duration: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 duration Ljava/time/Duration;
MethodParameters:
Name Flags
duration
public static jdk.internal.net.http.HttpRequestImpl newInstanceForRedirection(java.net.URI, java.lang.String, jdk.internal.net.http.HttpRequestImpl);
descriptor: (Ljava/net/URI;Ljava/lang/String;Ljdk/internal/net/http/HttpRequestImpl;)Ljdk/internal/net/http/HttpRequestImpl;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new jdk.internal.net.http.HttpRequestImpl
dup
aload 0
aload 1
aload 2
invokespecial jdk.internal.net.http.HttpRequestImpl.<init>:(Ljava/net/URI;Ljava/lang/String;Ljdk/internal/net/http/HttpRequestImpl;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 uri Ljava/net/URI;
0 1 1 method Ljava/lang/String;
0 1 2 other Ljdk/internal/net/http/HttpRequestImpl;
MethodParameters:
Name Flags
uri
method
other
public static jdk.internal.net.http.HttpRequestImpl newInstanceForAuthentication(jdk.internal.net.http.HttpRequestImpl);
descriptor: (Ljdk/internal/net/http/HttpRequestImpl;)Ljdk/internal/net/http/HttpRequestImpl;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new jdk.internal.net.http.HttpRequestImpl
dup
aload 0
invokevirtual jdk.internal.net.http.HttpRequestImpl.uri:()Ljava/net/URI;
aload 0
invokevirtual jdk.internal.net.http.HttpRequestImpl.method:()Ljava/lang/String;
aload 0
invokespecial jdk.internal.net.http.HttpRequestImpl.<init>:(Ljava/net/URI;Ljava/lang/String;Ljdk/internal/net/http/HttpRequestImpl;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 other Ljdk/internal/net/http/HttpRequestImpl;
MethodParameters:
Name Flags
other
private void <init>(java.net.URI, java.lang.String, jdk.internal.net.http.HttpRequestImpl);
descriptor: (Ljava/net/URI;Ljava/lang/String;Ljdk/internal/net/http/HttpRequestImpl;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.net.http.HttpRequest.<init>:()V
1: getstatic jdk.internal.net.http.HttpRequestImpl.$assertionsDisabled:Z
ifne 2
aload 2
ifnull 2
aload 2
invokestatic jdk.internal.net.http.common.Utils.isValidName:(Ljava/lang/String;)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: jdk.internal.net.http.HttpRequestImpl java.net.URI java.lang.String jdk.internal.net.http.HttpRequestImpl
StackMap stack:
aload 0
aload 2
ifnonnull 3
ldc "GET"
goto 4
StackMap locals:
StackMap stack: jdk.internal.net.http.HttpRequestImpl
3: aload 2
StackMap locals: jdk.internal.net.http.HttpRequestImpl java.net.URI java.lang.String jdk.internal.net.http.HttpRequestImpl
StackMap stack: jdk.internal.net.http.HttpRequestImpl java.lang.String
4: putfield jdk.internal.net.http.HttpRequestImpl.method:Ljava/lang/String;
5: aload 0
aload 3
getfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
putfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
6: aload 0
aload 3
getfield jdk.internal.net.http.HttpRequestImpl.isWebSocket:Z
putfield jdk.internal.net.http.HttpRequestImpl.isWebSocket:Z
7: aload 0
new jdk.internal.net.http.common.HttpHeadersBuilder
dup
invokespecial jdk.internal.net.http.common.HttpHeadersBuilder.<init>:()V
putfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
8: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
ldc "User-Agent"
invokevirtual java.net.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifne 10
9: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
ldc "User-Agent"
getstatic jdk.internal.net.http.HttpRequestImpl.USER_AGENT:Ljava/lang/String;
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
10: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
11: aload 0
aload 3
getfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
putfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
12: aload 0
aload 3
getfield jdk.internal.net.http.HttpRequestImpl.expectContinue:Z
putfield jdk.internal.net.http.HttpRequestImpl.expectContinue:Z
13: aload 0
aload 1
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
ldc "https"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
putfield jdk.internal.net.http.HttpRequestImpl.secure:Z
14: aload 0
aload 3
getfield jdk.internal.net.http.HttpRequestImpl.requestPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
putfield jdk.internal.net.http.HttpRequestImpl.requestPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
15: aload 0
aload 3
getfield jdk.internal.net.http.HttpRequestImpl.acc:Ljava/security/AccessControlContext;
putfield jdk.internal.net.http.HttpRequestImpl.acc:Ljava/security/AccessControlContext;
16: aload 0
aload 3
getfield jdk.internal.net.http.HttpRequestImpl.timeout:Ljava/time/Duration;
putfield jdk.internal.net.http.HttpRequestImpl.timeout:Ljava/time/Duration;
17: aload 0
aload 3
invokevirtual jdk.internal.net.http.HttpRequestImpl.version:()Ljava/util/Optional;
putfield jdk.internal.net.http.HttpRequestImpl.version:Ljava/util/Optional;
18: aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.authority:Ljava/net/InetSocketAddress;
19: return
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/HttpRequestImpl;
0 20 1 uri Ljava/net/URI;
0 20 2 method Ljava/lang/String;
0 20 3 other Ljdk/internal/net/http/HttpRequestImpl;
MethodParameters:
Name Flags
uri
method
other
void (java.lang.String, java.net.InetSocketAddress, java.net.http.HttpHeaders);
descriptor: (Ljava/lang/String;Ljava/net/InetSocketAddress;Ljava/net/http/HttpHeaders;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.net.http.HttpRequest.<init>:()V
1: getstatic jdk.internal.net.http.HttpRequestImpl.$assertionsDisabled:Z
ifne 2
ldc "CONNECT"
aload 1
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals: jdk.internal.net.http.HttpRequestImpl java.lang.String java.net.InetSocketAddress java.net.http.HttpHeaders
StackMap stack:
aload 0
aload 1
putfield jdk.internal.net.http.HttpRequestImpl.method:Ljava/lang/String;
3: aload 0
new jdk.internal.net.http.common.HttpHeadersBuilder
dup
invokespecial jdk.internal.net.http.common.HttpHeadersBuilder.<init>:()V
putfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
4: aload 0
aload 3
putfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
5: aload 0
new java.lang.StringBuilder
dup
ldc "socket://"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.net.InetSocketAddress.getHostString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ":"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: aload 2
invokevirtual java.net.InetSocketAddress.getPort:()I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
7: invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
putfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
8: aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
9: aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.requestPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
10: aload 0
aload 2
putfield jdk.internal.net.http.HttpRequestImpl.authority:Ljava/net/InetSocketAddress;
11: aload 0
iconst_0
putfield jdk.internal.net.http.HttpRequestImpl.secure:Z
12: aload 0
iconst_0
putfield jdk.internal.net.http.HttpRequestImpl.expectContinue:Z
13: aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.timeout:Ljava/time/Duration;
14: aload 0
getstatic java.net.http.HttpClient$Version.HTTP_1_1:Ljava/net/http/HttpClient$Version;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
putfield jdk.internal.net.http.HttpRequestImpl.version:Ljava/util/Optional;
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/internal/net/http/HttpRequestImpl;
0 16 1 method Ljava/lang/String;
0 16 2 authority Ljava/net/InetSocketAddress;
0 16 3 headers Ljava/net/http/HttpHeaders;
MethodParameters:
Name Flags
method
authority
headers
final boolean isConnect();
descriptor: ()Z
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "CONNECT"
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.method:Ljava/lang/String;
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
static jdk.internal.net.http.HttpRequestImpl (jdk.internal.net.http.HttpRequestImpl, java.net.http.HttpHeaders);
descriptor: (Ljdk/internal/net/http/HttpRequestImpl;Ljava/net/http/HttpHeaders;)Ljdk/internal/net/http/HttpRequestImpl;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new jdk.internal.net.http.HttpRequestImpl
dup
aload 0
aload 1
invokespecial jdk.internal.net.http.HttpRequestImpl.<init>:(Ljdk/internal/net/http/HttpRequestImpl;Ljava/net/http/HttpHeaders;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 parent Ljdk/internal/net/http/HttpRequestImpl;
0 1 1 headers Ljava/net/http/HttpHeaders;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
parent
headers
private void (jdk.internal.net.http.HttpRequestImpl, java.net.http.HttpHeaders);
descriptor: (Ljdk/internal/net/http/HttpRequestImpl;Ljava/net/http/HttpHeaders;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.net.http.HttpRequest.<init>:()V
1: aload 0
aload 2
ldc ":method"
invokevirtual java.net.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
2: 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/HttpRequestImpl.lambda$1()Ljava/io/IOException; (6)
()Ljava/io/IOException;
invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast java.lang.String
3: putfield jdk.internal.net.http.HttpRequestImpl.method:Ljava/lang/String;
4: aload 2
ldc ":path"
invokevirtual java.net.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
5: 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/HttpRequestImpl.lambda$2()Ljava/io/IOException; (6)
()Ljava/io/IOException;
invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast java.lang.String
6: astore 3
start local 3 7: aload 2
ldc ":scheme"
invokevirtual java.net.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
8: 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/HttpRequestImpl.lambda$3()Ljava/io/IOException; (6)
()Ljava/io/IOException;
invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast java.lang.String
9: astore 4
start local 4 10: aload 2
ldc ":authority"
invokevirtual java.net.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
11: 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/HttpRequestImpl.lambda$4()Ljava/io/IOException; (6)
()Ljava/io/IOException;
invokevirtual java.util.Optional.orElseThrow:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast java.lang.String
12: astore 5
start local 5 13: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 6
start local 6 14: aload 6
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "://"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: aload 0
aload 6
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.net.URI.create:(Ljava/lang/String;)Ljava/net/URI;
putfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
16: aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
17: aload 0
aload 2
invokevirtual java.net.http.HttpHeaders.map:()Ljava/util/Map;
getstatic jdk.internal.net.http.common.Utils.ALLOWED_HEADERS:Ljava/util/function/BiPredicate;
invokestatic java.net.http.HttpHeaders.of:(Ljava/util/Map;Ljava/util/function/BiPredicate;)Ljava/net/http/HttpHeaders;
putfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
18: aload 0
aload 1
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
putfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
19: aload 0
aload 1
getfield jdk.internal.net.http.HttpRequestImpl.expectContinue:Z
putfield jdk.internal.net.http.HttpRequestImpl.expectContinue:Z
20: aload 0
aload 1
getfield jdk.internal.net.http.HttpRequestImpl.secure:Z
putfield jdk.internal.net.http.HttpRequestImpl.secure:Z
21: aload 0
aload 1
getfield jdk.internal.net.http.HttpRequestImpl.requestPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
putfield jdk.internal.net.http.HttpRequestImpl.requestPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
22: aload 0
aload 1
getfield jdk.internal.net.http.HttpRequestImpl.acc:Ljava/security/AccessControlContext;
putfield jdk.internal.net.http.HttpRequestImpl.acc:Ljava/security/AccessControlContext;
23: aload 0
aload 1
getfield jdk.internal.net.http.HttpRequestImpl.timeout:Ljava/time/Duration;
putfield jdk.internal.net.http.HttpRequestImpl.timeout:Ljava/time/Duration;
24: aload 0
aload 1
getfield jdk.internal.net.http.HttpRequestImpl.version:Ljava/util/Optional;
putfield jdk.internal.net.http.HttpRequestImpl.version:Ljava/util/Optional;
25: aload 0
aconst_null
putfield jdk.internal.net.http.HttpRequestImpl.authority:Ljava/net/InetSocketAddress;
26: return
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 this Ljdk/internal/net/http/HttpRequestImpl;
0 27 1 parent Ljdk/internal/net/http/HttpRequestImpl;
0 27 2 headers Ljava/net/http/HttpHeaders;
7 27 3 path Ljava/lang/String;
10 27 4 scheme Ljava/lang/String;
13 27 5 authority Ljava/lang/String;
14 27 6 sb Ljava/lang/StringBuilder;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
parent
headers
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
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
ifnonnull 1
ldc ""
goto 2
StackMap locals: jdk.internal.net.http.HttpRequestImpl
StackMap stack: new 0 new 0
1: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
invokevirtual java.net.URI.toString:()Ljava/lang/String;
StackMap locals: jdk.internal.net.http.HttpRequestImpl
StackMap stack: new 0 new 0 java.lang.String
2: 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 0
getfield jdk.internal.net.http.HttpRequestImpl.method: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 3 0 this Ljdk/internal/net/http/HttpRequestImpl;
public java.net.http.HttpHeaders ();
descriptor: ()Ljava/net/http/HttpHeaders;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
java.net.InetSocketAddress authority();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.authority:Ljava/net/InetSocketAddress;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
void setH2Upgrade(jdk.internal.net.http.Http2ClientImpl);
descriptor: (Ljdk/internal/net/http/Http2ClientImpl;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
ldc "Connection"
ldc "Upgrade, HTTP2-Settings"
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
1: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
ldc "Upgrade"
ldc "h2c"
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
2: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
ldc "HTTP2-Settings"
aload 1
invokevirtual jdk.internal.net.http.Http2ClientImpl.getSettingsString:()Ljava/lang/String;
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/HttpRequestImpl;
0 4 1 h2client Ljdk/internal/net/http/Http2ClientImpl;
MethodParameters:
Name Flags
h2client
public boolean expectContinue();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.expectContinue:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
private static java.net.Proxy retrieveProxy(java.net.ProxySelector, java.net.URI);
descriptor: (Ljava/net/ProxySelector;Ljava/net/URI;)Ljava/net/Proxy;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
aload 1
invokevirtual java.net.ProxySelector.select:(Ljava/net/URI;)Ljava/util/List;
astore 3
start local 3 2: aload 3
invokeinterface java.util.List.isEmpty:()Z
ifne 6
3: aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.net.Proxy
astore 4
start local 4 4: aload 4
invokevirtual java.net.Proxy.type:()Ljava/net/Proxy$Type;
getstatic java.net.Proxy$Type.HTTP:Ljava/net/Proxy$Type;
if_acmpne 6
5: aload 4
astore 2
end local 4 6: StackMap locals: java.net.Proxy java.util.List
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 ps Ljava/net/ProxySelector;
0 7 1 uri Ljava/net/URI;
1 7 2 proxy Ljava/net/Proxy;
2 7 3 pl Ljava/util/List<Ljava/net/Proxy;>;
4 6 4 p Ljava/net/Proxy;
MethodParameters:
Name Flags
ps
uri
java.net.InetSocketAddress proxy();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
ifnull 2
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
invokevirtual java.net.Proxy.type:()Ljava/net/Proxy$Type;
getstatic java.net.Proxy$Type.HTTP:Ljava/net/Proxy$Type;
if_acmpne 2
1: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.method:Ljava/lang/String;
ldc "CONNECT"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 3
2: StackMap locals:
StackMap stack:
aconst_null
areturn
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
invokevirtual java.net.Proxy.address:()Ljava/net/SocketAddress;
checkcast java.net.InetSocketAddress
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/HttpRequestImpl;
boolean secure();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.secure:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
public void setProxy(java.net.Proxy);
descriptor: (Ljava/net/Proxy;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.internal.net.http.HttpRequestImpl.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.isWebSocket:Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield jdk.internal.net.http.HttpRequestImpl.proxy:Ljava/net/Proxy;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/HttpRequestImpl;
0 3 1 proxy Ljava/net/Proxy;
MethodParameters:
Name Flags
proxy
public void isWebSocket(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.internal.net.http.HttpRequestImpl.isWebSocket:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/HttpRequestImpl;
0 2 1 is Z
MethodParameters:
Name Flags
is
boolean isWebSocket();
descriptor: ()Z
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.isWebSocket:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
public java.util.Optional<java.net.http.HttpRequest$BodyPublisher> bodyPublisher();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.requestPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
ifnonnull 1
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
goto 2
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.HttpRequestImpl.requestPublisher:Ljava/net/http/HttpRequest$BodyPublisher;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
2: StackMap locals:
StackMap stack: java.util.Optional
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/HttpRequestImpl;
Signature: ()Ljava/util/Optional<Ljava/net/http/HttpRequest$BodyPublisher;>;
public java.lang.String method();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.method:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
public java.net.URI uri();
descriptor: ()Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.uri:Ljava/net/URI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
public java.util.Optional<java.time.Duration> timeout();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.timeout:Ljava/time/Duration;
ifnonnull 1
invokestatic java.util.Optional.empty:()Ljava/util/Optional;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.timeout:Ljava/time/Duration;
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
StackMap locals:
StackMap stack: java.util.Optional
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/HttpRequestImpl;
Signature: ()Ljava/util/Optional<Ljava/time/Duration;>;
java.net.http.HttpHeaders ();
descriptor: ()Ljava/net/http/HttpHeaders;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.userHeaders:Ljava/net/http/HttpHeaders;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
jdk.internal.net.http.common.HttpHeadersBuilder ();
descriptor: ()Ljdk/internal/net/http/common/HttpHeadersBuilder;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
public java.util.Optional<java.net.http.HttpClient$Version> version();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.version:Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/HttpRequestImpl;
Signature: ()Ljava/util/Optional<Ljava/net/http/HttpClient$Version;>;
void (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
aload 1
aload 2
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.addHeader:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/HttpRequestImpl;
0 2 1 name Ljava/lang/String;
0 2 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public void (java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield jdk.internal.net.http.HttpRequestImpl.systemHeadersBuilder:Ljdk/internal/net/http/common/HttpHeadersBuilder;
aload 1
aload 2
invokevirtual jdk.internal.net.http.common.HttpHeadersBuilder.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/HttpRequestImpl;
0 2 1 name Ljava/lang/String;
0 2 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
java.net.InetSocketAddress getAddress();
descriptor: ()Ljava/net/InetSocketAddress;
flags: (0x0000)
Code:
stack=2, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.net.http.HttpRequestImpl.uri:()Ljava/net/URI;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aload 0
invokevirtual jdk.internal.net.http.HttpRequestImpl.authority:()Ljava/net/InetSocketAddress;
areturn
3: StackMap locals: java.net.URI
StackMap stack:
aload 1
invokevirtual java.net.URI.getPort:()I
istore 2
start local 2 4: iload 2
iconst_m1
if_icmpne 9
5: aload 1
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
ldc "https"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 8
6: sipush 443
istore 2
7: goto 9
8: StackMap locals: int
StackMap stack:
bipush 80
istore 2
9: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.net.URI.getHost:()Ljava/lang/String;
astore 3
start local 3 10: iload 2
istore 4
start local 4 11: aload 0
invokevirtual jdk.internal.net.http.HttpRequestImpl.proxy:()Ljava/net/InetSocketAddress;
ifnonnull 14
12: aload 3
iload 4
invokedynamic run(Ljava/lang/String;I)Ljava/security/PrivilegedAction;
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/HttpRequestImpl.lambda$5(Ljava/lang/String;I)Ljava/net/InetSocketAddress; (6)
()Ljava/net/InetSocketAddress;
astore 5
start local 5 13: aload 5
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.net.InetSocketAddress
areturn
end local 5 14: StackMap locals: java.lang.String int
StackMap stack:
aload 3
iload 4
invokestatic java.net.InetSocketAddress.createUnresolved:(Ljava/lang/String;I)Ljava/net/InetSocketAddress;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/internal/net/http/HttpRequestImpl;
1 15 1 uri Ljava/net/URI;
4 15 2 p I
10 15 3 host Ljava/lang/String;
11 15 4 port I
13 14 5 pa Ljava/security/PrivilegedAction<Ljava/net/InetSocketAddress;>;
private static java.lang.String lambda$0();
descriptor: ()Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=0, args_size=0
0: ldc "java.version"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.io.IOException lambda$1();
descriptor: ()Ljava/io/IOException;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=0, args_size=0
0: new java.io.IOException
dup
ldc "No method in Push Promise"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.io.IOException lambda$2();
descriptor: ()Ljava/io/IOException;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=0, args_size=0
0: new java.io.IOException
dup
ldc "No path in Push Promise"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.io.IOException lambda$3();
descriptor: ()Ljava/io/IOException;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=0, args_size=0
0: new java.io.IOException
dup
ldc "No scheme in Push Promise"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.io.IOException lambda$4();
descriptor: ()Ljava/io/IOException;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=0, args_size=0
0: new java.io.IOException
dup
ldc "No authority in Push Promise"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.net.InetSocketAddress lambda$5(java.lang.String, int);
descriptor: (Ljava/lang/String;I)Ljava/net/InetSocketAddress;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=2, args_size=2
0: new java.net.InetSocketAddress
dup
aload 0
iload 1
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "HttpRequestImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public final Type = java.net.Proxy$Type of java.net.Proxy
public final Version = java.net.http.HttpClient$Version of java.net.http.HttpClient
public abstract BodyPublisher = java.net.http.HttpRequest$BodyPublisher of java.net.http.HttpRequest