class jdk.incubator.http.Http1Request
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.Http1Request
super_class: java.lang.Object
{
final jdk.incubator.http.HttpClientImpl client;
descriptor: Ljdk/incubator/http/HttpClientImpl;
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.HttpRequestImpl request;
descriptor: Ljdk/incubator/http/HttpRequestImpl;
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.HttpConnection chan;
descriptor: Ljdk/incubator/http/HttpConnection;
flags: (0x0010) ACC_FINAL
final java.nio.ByteBuffer[] buffers;
descriptor: [Ljava/nio/ByteBuffer;
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.HttpRequest$BodyProcessor requestProc;
descriptor: Ljdk/incubator/http/HttpRequest$BodyProcessor;
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.HttpHeaders ;
descriptor: Ljdk/incubator/http/HttpHeaders;
flags: (0x0010) ACC_FINAL
final jdk.incubator.http.internal.common.HttpHeadersImpl ;
descriptor: Ljdk/incubator/http/internal/common/HttpHeadersImpl;
flags: (0x0010) ACC_FINAL
boolean streaming;
descriptor: Z
flags: (0x0000)
long contentLength;
descriptor: J
flags: (0x0000)
final java.util.concurrent.CompletableFuture<java.lang.Void> cf;
descriptor: Ljava/util/concurrent/CompletableFuture;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
private boolean finished;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private static final byte[] CRLF;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final byte[] EMPTY_CHUNK_BYTES;
descriptor: [B
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: iconst_2
newarray 8
dup
iconst_0
bipush 13
bastore
dup
iconst_1
bipush 10
bastore
putstatic jdk.incubator.http.Http1Request.CRLF:[B
1: iconst_3
newarray 8
dup
iconst_0
bipush 48
bastore
dup
iconst_1
bipush 13
bastore
dup
iconst_2
bipush 10
bastore
putstatic jdk.incubator.http.Http1Request.EMPTY_CHUNK_BYTES:[B
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.incubator.http.HttpRequestImpl, jdk.incubator.http.HttpClientImpl, jdk.incubator.http.HttpConnection);
descriptor: (Ljdk/incubator/http/HttpRequestImpl;Ljdk/incubator/http/HttpClientImpl;Ljdk/incubator/http/HttpConnection;)V
flags: (0x0000)
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.lang.Object.<init>:()V
1: aload 0
aload 2
putfield jdk.incubator.http.Http1Request.client:Ljdk/incubator/http/HttpClientImpl;
2: aload 0
aload 1
putfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
3: aload 0
aload 3
putfield jdk.incubator.http.Http1Request.chan:Ljdk/incubator/http/HttpConnection;
4: aload 0
iconst_5
anewarray java.nio.ByteBuffer
putfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
5: aload 0
aload 1
getfield jdk.incubator.http.HttpRequestImpl.requestProcessor:Ljdk/incubator/http/HttpRequest$BodyProcessor;
putfield jdk.incubator.http.Http1Request.requestProc:Ljdk/incubator/http/HttpRequest$BodyProcessor;
6: aload 0
aload 1
invokevirtual jdk.incubator.http.HttpRequestImpl.getUserHeaders:()Ljdk/incubator/http/HttpHeaders;
putfield jdk.incubator.http.Http1Request.userHeaders:Ljdk/incubator/http/HttpHeaders;
7: aload 0
aload 1
invokevirtual jdk.incubator.http.HttpRequestImpl.getSystemHeaders:()Ljdk/incubator/http/internal/common/HttpHeadersImpl;
putfield jdk.incubator.http.Http1Request.systemHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
8: aload 0
new jdk.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
putfield jdk.incubator.http.Http1Request.cf:Ljava/util/concurrent/CompletableFuture;
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/incubator/http/Http1Request;
0 10 1 request Ljdk/incubator/http/HttpRequestImpl;
0 10 2 client Ljdk/incubator/http/HttpClientImpl;
0 10 3 connection Ljdk/incubator/http/HttpConnection;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
request
client
connection
private void ();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
sipush 256
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 1
start local 1 1: aload 1
ldc "REQUEST HEADERS:\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
2: aload 1
ldc " "
aload 0
getfield jdk.incubator.http.Http1Request.systemHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
invokestatic jdk.incubator.http.internal.common.Log.dumpHeaders:(Ljava/lang/StringBuilder;Ljava/lang/String;Ljdk/incubator/http/HttpHeaders;)V
3: aload 1
ldc " "
aload 0
getfield jdk.incubator.http.Http1Request.userHeaders:Ljdk/incubator/http/HttpHeaders;
invokestatic jdk.incubator.http.internal.common.Log.dumpHeaders:(Ljava/lang/StringBuilder;Ljava/lang/String;Ljdk/incubator/http/HttpHeaders;)V
4: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic jdk.incubator.http.internal.common.Log.logHeaders:(Ljava/lang/String;[Ljava/lang/Object;)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/Http1Request;
1 6 1 sb Ljava/lang/StringBuilder;
Exceptions:
throws java.io.IOException
private void dummy(long);
descriptor: (J)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=0, locals=3, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Request;
0 1 1 x J
MethodParameters:
Name Flags
x
private void ();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: invokestatic jdk.incubator.http.internal.common.Log.headers:()Z
ifeq 2
1: aload 0
invokevirtual jdk.incubator.http.Http1Request.logHeaders:()V
2: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
sipush 256
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 1
start local 1 3: aload 0
aload 1
aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
aload 0
getfield jdk.incubator.http.Http1Request.systemHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
invokevirtual jdk.incubator.http.Http1Request.collectHeaders1:(Ljava/lang/StringBuilder;Ljdk/incubator/http/HttpRequestImpl;Ljdk/incubator/http/HttpHeaders;)V
4: aload 0
aload 1
aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
aload 0
getfield jdk.incubator.http.Http1Request.userHeaders:Ljdk/incubator/http/HttpHeaders;
invokevirtual jdk.incubator.http.Http1Request.collectHeaders1:(Ljava/lang/StringBuilder;Ljdk/incubator/http/HttpRequestImpl;Ljdk/incubator/http/HttpHeaders;)V
5: aload 1
ldc "\r\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 7: aload 0
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_1
aload 2
getstatic java.nio.charset.StandardCharsets.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
aastore
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/Http1Request;
3 9 1 sb Ljava/lang/StringBuilder;
7 9 2 headers Ljava/lang/String;
Exceptions:
throws java.io.IOException
private void (java.lang.StringBuilder, jdk.incubator.http.HttpRequestImpl, jdk.incubator.http.HttpHeaders);
descriptor: (Ljava/lang/StringBuilder;Ljdk/incubator/http/HttpRequestImpl;Ljdk/incubator/http/HttpHeaders;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=12, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
invokeinterface jdk.incubator.http.HttpHeaders.map:()Ljava/util/Map;
astore 4
start local 4 1: aload 4
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
astore 5
start local 5 2: aload 5
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 13
StackMap locals: jdk.incubator.http.Http1Request java.lang.StringBuilder jdk.incubator.http.HttpRequestImpl jdk.incubator.http.HttpHeaders java.util.Map java.util.Set top java.util.Iterator
StackMap stack:
3: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 6
start local 6 4: aload 6
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 5: aload 6
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.List
astore 9
start local 9 6: aload 9
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 11
goto 12
StackMap locals: jdk.incubator.http.Http1Request java.lang.StringBuilder jdk.incubator.http.HttpRequestImpl jdk.incubator.http.HttpHeaders java.util.Map java.util.Set java.util.Map$Entry java.util.Iterator java.lang.String java.util.List top java.util.Iterator
StackMap stack:
7: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 10
start local 10 8: aload 1
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: aload 10
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc "\r\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 10 12: StackMap locals:
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
end local 9 end local 8 end local 6 13: StackMap locals: jdk.incubator.http.Http1Request java.lang.StringBuilder jdk.incubator.http.HttpRequestImpl jdk.incubator.http.HttpHeaders java.util.Map java.util.Set top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
14: 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 15 0 this Ljdk/incubator/http/Http1Request;
0 15 1 sb Ljava/lang/StringBuilder;
0 15 2 request Ljdk/incubator/http/HttpRequestImpl;
0 15 3 headers Ljdk/incubator/http/HttpHeaders;
1 15 4 h Ljava/util/Map<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
2 15 5 entries Ljava/util/Set<Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;>;
4 13 6 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/List<Ljava/lang/String;>;>;
5 13 8 key Ljava/lang/String;
6 13 9 values Ljava/util/List<Ljava/lang/String;>;
8 12 10 value Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
sb
request
headers
private java.lang.String getPathAndQuery(java.net.URI);
descriptor: (Ljava/net/URI;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.URI.getPath:()Ljava/lang/String;
astore 2
start local 2 1: aload 1
invokevirtual java.net.URI.getQuery:()Ljava/lang/String;
astore 3
start local 3 2: aload 2
ifnull 3
aload 2
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: StackMap locals: java.lang.String java.lang.String
StackMap stack:
ldc "/"
astore 2
4: StackMap locals:
StackMap stack:
aload 3
ifnonnull 6
5: ldc ""
astore 3
6: StackMap locals:
StackMap stack:
aload 3
ldc ""
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aload 2
areturn
8: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 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 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/Http1Request;
0 9 1 uri Ljava/net/URI;
1 9 2 path Ljava/lang/String;
2 9 3 query Ljava/lang/String;
MethodParameters:
Name Flags
uri
private java.lang.String authorityString(java.net.InetSocketAddress);
descriptor: (Ljava/net/InetSocketAddress;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.net.InetSocketAddress.getHostString:()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.net.InetSocketAddress.getPort:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Request;
0 1 1 addr Ljava/net/InetSocketAddress;
MethodParameters:
Name Flags
addr
private java.lang.String hostString();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.uri:()Ljava/net/URI;
astore 1
start local 1 1: aload 1
invokevirtual java.net.URI.getPort:()I
istore 2
start local 2 2: aload 1
invokevirtual java.net.URI.getHost:()Ljava/lang/String;
astore 3
start local 3 3: iload 2
iconst_m1
if_icmpne 6
4: iconst_1
istore 4
start local 4 5: goto 14
end local 4 StackMap locals: java.net.URI int java.lang.String
StackMap stack:
6: aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.secure:()Z
ifeq 11
7: iload 2
sipush 443
if_icmpne 8
iconst_1
goto 9
StackMap locals:
StackMap stack:
8: iconst_0
StackMap locals:
StackMap stack: int
9: istore 4
start local 4 10: goto 14
end local 4 11: StackMap locals:
StackMap stack:
iload 2
bipush 80
if_icmpne 12
iconst_1
goto 13
StackMap locals:
StackMap stack:
12: iconst_0
StackMap locals:
StackMap stack: int
13: istore 4
start local 4 14: StackMap locals: int
StackMap stack:
iload 4
ifeq 16
15: aload 3
areturn
16: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
aload 3
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;
iload 2
invokestatic java.lang.Integer.toString:(I)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 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/incubator/http/Http1Request;
1 17 1 uri Ljava/net/URI;
2 17 2 port I
3 17 3 host Ljava/lang/String;
5 6 4 defaultPort Z
10 11 4 defaultPort Z
14 17 4 defaultPort Z
private java.lang.String requestURI();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.uri:()Ljava/net/URI;
astore 1
start local 1 1: aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.method:()Ljava/lang/String;
astore 2
start local 2 2: aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
aload 0
getfield jdk.incubator.http.Http1Request.client:Ljdk/incubator/http/HttpClientImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.proxy:(Ljdk/incubator/http/HttpClientImpl;)Ljava/net/InetSocketAddress;
ifnonnull 3
aload 2
ldc "CONNECT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 4
3: StackMap locals: java.net.URI java.lang.String
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.isWebSocket:()Z
ifeq 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.incubator.http.Http1Request.getPathAndQuery:(Ljava/net/URI;)Ljava/lang/String;
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.secure:()Z
ifeq 9
6: aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.method:()Ljava/lang/String;
ldc "CONNECT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aload 0
aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.authority:()Ljava/net/InetSocketAddress;
invokevirtual jdk.incubator.http.Http1Request.authorityString:(Ljava/net/InetSocketAddress;)Ljava/lang/String;
areturn
8: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual jdk.incubator.http.Http1Request.getPathAndQuery:(Ljava/net/URI;)Ljava/lang/String;
areturn
9: StackMap locals:
StackMap stack:
aload 1
ifnonnull 10
aload 0
aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.authority:()Ljava/net/InetSocketAddress;
invokevirtual jdk.incubator.http.Http1Request.authorityString:(Ljava/net/InetSocketAddress;)Ljava/lang/String;
goto 11
StackMap locals:
StackMap stack:
10: aload 1
invokevirtual java.net.URI.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
11: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/incubator/http/Http1Request;
1 12 1 uri Ljava/net/URI;
2 12 2 method Ljava/lang/String;
void ();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.incubator.http.Http1Request.collectHeaders:()V
1: aload 0
getfield jdk.incubator.http.Http1Request.chan:Ljdk/incubator/http/HttpConnection;
aload 0
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_0
iconst_2
invokevirtual jdk.incubator.http.HttpConnection.write:([Ljava/nio/ByteBuffer;II)J
pop2
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/Http1Request;
Exceptions:
throws java.io.IOException
void sendRequest();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.incubator.http.Http1Request.collectHeaders:()V
1: aload 0
getfield jdk.incubator.http.Http1Request.chan:Ljdk/incubator/http/HttpConnection;
getstatic jdk.incubator.http.HttpConnection$Mode.BLOCKING:Ljdk/incubator/http/HttpConnection$Mode;
invokevirtual jdk.incubator.http.HttpConnection.configureMode:(Ljdk/incubator/http/HttpConnection$Mode;)V
2: aload 0
getfield jdk.incubator.http.Http1Request.contentLength:J
lconst_0
lcmp
ifne 5
3: aload 0
getfield jdk.incubator.http.Http1Request.chan:Ljdk/incubator/http/HttpConnection;
aload 0
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_0
iconst_2
invokevirtual jdk.incubator.http.HttpConnection.write:([Ljava/nio/ByteBuffer;II)J
pop2
4: goto 9
StackMap locals:
StackMap stack:
5: aload 0
getfield jdk.incubator.http.Http1Request.contentLength:J
lconst_0
lcmp
ifle 8
6: aload 0
iconst_1
invokevirtual jdk.incubator.http.Http1Request.writeFixedContent:(Z)V
7: goto 9
8: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual jdk.incubator.http.Http1Request.writeStreamedContent:(Z)V
9: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.incubator.http.Http1Request.setFinished:()V
10: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/incubator/http/Http1Request;
Exceptions:
throws java.io.IOException
synchronized boolean finished();
descriptor: ()Z
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Request.finished:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Request;
synchronized void setFinished();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.incubator.http.Http1Request.finished:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/Http1Request;
private void ();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=1
start local 0 0: invokestatic jdk.incubator.http.internal.common.Log.requests:()Z
ifeq 2
aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
ifnull 2
1: aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.toString:()Ljava/lang/String;
iconst_0
anewarray java.lang.Object
invokestatic jdk.incubator.http.internal.common.Log.logRequest:(Ljava/lang/String;[Ljava/lang/Object;)V
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.incubator.http.Http1Request.requestURI:()Ljava/lang/String;
astore 1
start local 1 3: new java.lang.StringBuilder
dup
bipush 64
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 2
start local 2 4: aload 2
aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.method:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
6: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc " HTTP/1.1\r\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 2
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 9: aload 0
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_0
aload 3
getstatic java.nio.charset.StandardCharsets.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
aastore
10: aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.uri:()Ljava/net/URI;
astore 4
start local 4 11: aload 4
ifnull 13
12: aload 0
getfield jdk.incubator.http.Http1Request.systemHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
ldc "Host"
aload 0
invokevirtual jdk.incubator.http.Http1Request.hostString:()Ljava/lang/String;
invokevirtual jdk.incubator.http.internal.common.HttpHeadersImpl.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
13: StackMap locals: jdk.incubator.http.Http1Request java.lang.String java.lang.StringBuilder java.lang.String java.net.URI
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request.request:Ljdk/incubator/http/HttpRequestImpl;
ifnonnull 16
14: aload 0
lconst_0
putfield jdk.incubator.http.Http1Request.contentLength:J
15: goto 17
16: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.incubator.http.Http1Request.requestProc:Ljdk/incubator/http/HttpRequest$BodyProcessor;
invokeinterface jdk.incubator.http.HttpRequest$BodyProcessor.contentLength:()J
putfield jdk.incubator.http.Http1Request.contentLength:J
17: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Request.contentLength:J
lconst_0
lcmp
ifne 21
18: aload 0
getfield jdk.incubator.http.Http1Request.systemHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
ldc "Content-Length"
ldc "0"
invokevirtual jdk.incubator.http.internal.common.HttpHeadersImpl.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
19: aload 0
invokevirtual jdk.incubator.http.Http1Request.collectHeaders0:()V
20: goto 33
StackMap locals:
StackMap stack:
21: aload 0
getfield jdk.incubator.http.Http1Request.contentLength:J
lconst_0
lcmp
ifle 29
22: aload 0
getfield jdk.incubator.http.Http1Request.systemHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
ldc "Content-Length"
23: aload 0
getfield jdk.incubator.http.Http1Request.contentLength:J
l2i
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
24: invokevirtual jdk.incubator.http.internal.common.HttpHeadersImpl.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
25: aload 0
iconst_0
putfield jdk.incubator.http.Http1Request.streaming:Z
26: aload 0
invokevirtual jdk.incubator.http.Http1Request.collectHeaders0:()V
27: aload 0
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_2
aload 0
invokevirtual jdk.incubator.http.Http1Request.getBuffer:()Ljava/nio/ByteBuffer;
aastore
28: goto 33
29: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.incubator.http.Http1Request.streaming:Z
30: aload 0
getfield jdk.incubator.http.Http1Request.systemHeaders:Ljdk/incubator/http/internal/common/HttpHeadersImpl;
ldc "Transfer-encoding"
ldc "chunked"
invokevirtual jdk.incubator.http.internal.common.HttpHeadersImpl.setHeader:(Ljava/lang/String;Ljava/lang/String;)V
31: aload 0
invokevirtual jdk.incubator.http.Http1Request.collectHeaders0:()V
32: aload 0
getfield jdk.incubator.http.Http1Request.buffers:[Ljava/nio/ByteBuffer;
iconst_3
aload 0
invokevirtual jdk.incubator.http.Http1Request.getBuffer:()Ljava/nio/ByteBuffer;
aastore
33: 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 34 0 this Ljdk/incubator/http/Http1Request;
3 34 1 uriString Ljava/lang/String;
4 34 2 sb Ljava/lang/StringBuilder;
9 34 3 cmd Ljava/lang/String;
11 34 4 uri Ljava/net/URI;
Exceptions:
throws java.io.IOException
private java.nio.ByteBuffer getBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic jdk.incubator.http.internal.common.Utils.BUFSIZE:I
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Request;
void continueRequest();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Request.streaming:Z
ifeq 3
1: aload 0
iconst_0
invokevirtual jdk.incubator.http.Http1Request.writeStreamedContent:(Z)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual jdk.incubator.http.Http1Request.writeFixedContent:(Z)V
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.incubator.http.Http1Request.setFinished:()V
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/Http1Request;
Exceptions:
throws java.io.IOException
private void waitForCompletion();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Request.cf:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.join:()Ljava/lang/Object;
pop
1: goto 4
StackMap locals:
StackMap stack: java.util.concurrent.CompletionException
2: astore 1
start local 1 3: aload 1
invokestatic jdk.incubator.http.internal.common.Utils.getIOException:(Ljava/lang/Throwable;)Ljava/io/IOException;
athrow
end local 1 4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Http1Request;
3 4 1 e Ljava/util/concurrent/CompletionException;
Exception table:
from to target type
0 1 2 Class java.util.concurrent.CompletionException
Exceptions:
throws java.io.IOException
private void writeStreamedContent(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: new jdk.incubator.http.Http1Request$StreamSubscriber
dup
aload 0
iload 1
invokespecial jdk.incubator.http.Http1Request$StreamSubscriber.<init>:(Ljdk/incubator/http/Http1Request;Z)V
astore 2
start local 2 1: aload 2
aload 0
getfield jdk.incubator.http.Http1Request.client:Ljdk/incubator/http/HttpClientImpl;
invokevirtual jdk.incubator.http.Http1Request$StreamSubscriber.setClient:(Ljdk/incubator/http/HttpClientImpl;)V
2: aload 0
getfield jdk.incubator.http.Http1Request.requestProc:Ljdk/incubator/http/HttpRequest$BodyProcessor;
aload 2
invokeinterface jdk.incubator.http.HttpRequest$BodyProcessor.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
3: aload 0
invokevirtual jdk.incubator.http.Http1Request.waitForCompletion:()V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Http1Request;
0 5 1 includeHeaders Z
1 5 2 subscriber Ljdk/incubator/http/Http1Request$StreamSubscriber;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
includeHeaders
private void writeFixedContent(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http1Request.contentLength:J
lconst_0
lcmp
ifne 2
1: return
2: StackMap locals:
StackMap stack:
new jdk.incubator.http.Http1Request$FixedContentSubscriber
dup
aload 0
iload 1
invokespecial jdk.incubator.http.Http1Request$FixedContentSubscriber.<init>:(Ljdk/incubator/http/Http1Request;Z)V
astore 2
start local 2 3: aload 2
aload 0
getfield jdk.incubator.http.Http1Request.client:Ljdk/incubator/http/HttpClientImpl;
invokevirtual jdk.incubator.http.Http1Request$FixedContentSubscriber.setClient:(Ljdk/incubator/http/HttpClientImpl;)V
4: aload 0
getfield jdk.incubator.http.Http1Request.requestProc:Ljdk/incubator/http/HttpRequest$BodyProcessor;
aload 2
invokeinterface jdk.incubator.http.HttpRequest$BodyProcessor.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
5: aload 0
invokevirtual jdk.incubator.http.Http1Request.waitForCompletion:()V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/Http1Request;
0 7 1 includeHeaders Z
3 7 2 subscriber Ljdk/incubator/http/Http1Request$FixedContentSubscriber;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
includeHeaders
private java.nio.ByteBuffer CRLF_BUFFER();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic jdk.incubator.http.Http1Request.CRLF:[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Request;
private java.nio.ByteBuffer ();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic jdk.incubator.http.Http1Request.EMPTY_CHUNK_BYTES:[B
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Request;
private static java.nio.ByteBuffer (int);
descriptor: (I)Ljava/nio/ByteBuffer;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: iload 0
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
astore 1
start local 1 1: aload 1
getstatic java.nio.charset.StandardCharsets.US_ASCII:Ljava/nio/charset/Charset;
invokevirtual java.lang.String.getBytes:(Ljava/nio/charset/Charset;)[B
astore 2
start local 2 2: aload 1
invokevirtual java.lang.String.length:()I
iconst_2
iadd
newarray 8
astore 3
start local 3 3: aload 2
iconst_0
aload 3
iconst_0
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
4: aload 3
aload 2
arraylength
getstatic jdk.incubator.http.Http1Request.CRLF:[B
iconst_0
baload
bastore
5: aload 3
aload 2
arraylength
iconst_1
iadd
getstatic jdk.incubator.http.Http1Request.CRLF:[B
iconst_1
baload
bastore
6: aload 3
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 size I
1 7 1 hexStr Ljava/lang/String;
2 7 2 hexBytes [B
3 7 3 header [B
MethodParameters:
Name Flags
size
}
SourceFile: "Http1Request.java"
NestMembers:
jdk.incubator.http.Http1Request$FixedContentSubscriber jdk.incubator.http.Http1Request$StreamSubscriber
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public abstract Subscriber = java.util.concurrent.Flow$Subscriber of java.util.concurrent.Flow
FixedContentSubscriber = jdk.incubator.http.Http1Request$FixedContentSubscriber of jdk.incubator.http.Http1Request
StreamSubscriber = jdk.incubator.http.Http1Request$StreamSubscriber of jdk.incubator.http.Http1Request
final Mode = jdk.incubator.http.HttpConnection$Mode of jdk.incubator.http.HttpConnection
public abstract BodyProcessor = jdk.incubator.http.HttpRequest$BodyProcessor of jdk.incubator.http.HttpRequest