class jdk.incubator.http.Http1Response<T>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.Http1Response
super_class: java.lang.Object
{
private volatile jdk.incubator.http.ResponseContent content;
descriptor: Ljdk/incubator/http/ResponseContent;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final jdk.incubator.http.HttpRequestImpl request;
descriptor: Ljdk/incubator/http/HttpRequestImpl;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private jdk.incubator.http.Response response;
descriptor: Ljdk/incubator/http/Response;
flags: (0x0002) ACC_PRIVATE
private final jdk.incubator.http.HttpConnection connection;
descriptor: Ljdk/incubator/http/HttpConnection;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private jdk.incubator.http.HttpHeaders ;
descriptor: Ljdk/incubator/http/HttpHeaders;
flags: (0x0002) ACC_PRIVATE
private int responseCode;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private final jdk.incubator.http.Http1Exchange<T> exchange;
descriptor: Ljdk/incubator/http/Http1Exchange;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljdk/incubator/http/Http1Exchange<TT;>;
private boolean return2Cache;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final jdk.incubator.http.Http1Response<T>.HeadersReader ;
descriptor: Ljdk/incubator/http/Http1Response$HeadersReader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljdk/incubator/http/Http1Response<TT;>.HeadersReader;
private final jdk.incubator.http.Http1Response<T>.BodyReader bodyReader;
descriptor: Ljdk/incubator/http/Http1Response$BodyReader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljdk/incubator/http/Http1Response<TT;>.BodyReader;
private final jdk.incubator.http.Http1AsyncReceiver asyncReceiver;
descriptor: Ljdk/incubator/http/Http1AsyncReceiver;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.io.EOFException eof;
descriptor: Ljava/io/EOFException;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final int MAX_IGNORE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1024
private volatile jdk.incubator.http.Http1Response$State readProgress;
descriptor: Ljdk/incubator/http/Http1Response$State;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static final boolean DEBUG;
descriptor: Z
flags: (0x0018) ACC_STATIC, ACC_FINAL
final java.lang.System$Logger debug;
descriptor: Ljava/lang/System$Logger;
flags: (0x0010) ACC_FINAL
private boolean finished;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
private static volatile int[] $SWITCH_TABLE$jdk$incubator$http$Http1Response$State;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/incubator/http/Http1Response;
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.incubator.http.Http1Response.$assertionsDisabled:Z
3: getstatic jdk.incubator.http.internal.common.Utils.DEBUG:Z
putstatic jdk.incubator.http.Http1Response.DEBUG:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(jdk.incubator.http.HttpConnection, jdk.incubator.http.Http1Exchange<T>, jdk.incubator.http.Http1AsyncReceiver);
descriptor: (Ljdk/incubator/http/HttpConnection;Ljdk/incubator/http/Http1Exchange;Ljdk/incubator/http/Http1AsyncReceiver;)V
flags: (0x0000)
Code:
stack=5, 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
getstatic jdk.incubator.http.Http1Response$State.INITIAL:Ljdk/incubator/http/Http1Response$State;
putfield jdk.incubator.http.Http1Response.readProgress:Ljdk/incubator/http/Http1Response$State;
2: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
dup
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
pop
invokedynamic get(Ljava/lang/Class;)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;
java/lang/Class.getSimpleName()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.incubator.http.Http1Response.DEBUG:Z
invokestatic jdk.incubator.http.internal.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljava/lang/System$Logger;
putfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
3: aload 0
getstatic jdk.incubator.http.Http1Response$State.INITIAL:Ljdk/incubator/http/Http1Response$State;
putfield jdk.incubator.http.Http1Response.readProgress:Ljdk/incubator/http/Http1Response$State;
4: aload 0
aload 2
invokevirtual jdk.incubator.http.Http1Exchange.request:()Ljdk/incubator/http/HttpRequestImpl;
putfield jdk.incubator.http.Http1Response.request:Ljdk/incubator/http/HttpRequestImpl;
5: aload 0
aload 2
putfield jdk.incubator.http.Http1Response.exchange:Ljdk/incubator/http/Http1Exchange;
6: aload 0
aload 1
putfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
7: aload 0
aload 3
putfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
8: aload 0
new jdk.incubator.http.Http1Response$HeadersReader
dup
aload 0
aload 0
invokedynamic accept(Ljdk/incubator/http/Http1Response;)Ljava/util/function/Consumer;
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;)V
jdk/incubator/http/Http1Response.advance(Ljdk/incubator/http/Http1Response$State;)Ljdk/incubator/http/Http1Response$State; (7)
(Ljdk/incubator/http/Http1Response$State;)V
invokespecial jdk.incubator.http.Http1Response$HeadersReader.<init>:(Ljdk/incubator/http/Http1Response;Ljava/util/function/Consumer;)V
putfield jdk.incubator.http.Http1Response.headersReader:Ljdk/incubator/http/Http1Response$HeadersReader;
9: aload 0
new jdk.incubator.http.Http1Response$BodyReader
dup
aload 0
aload 0
invokedynamic accept(Ljdk/incubator/http/Http1Response;)Ljava/util/function/Consumer;
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;)V
jdk/incubator/http/Http1Response.advance(Ljdk/incubator/http/Http1Response$State;)Ljdk/incubator/http/Http1Response$State; (7)
(Ljdk/incubator/http/Http1Response$State;)V
invokespecial jdk.incubator.http.Http1Response$BodyReader.<init>:(Ljdk/incubator/http/Http1Response;Ljava/util/function/Consumer;)V
putfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 11 1 conn Ljdk/incubator/http/HttpConnection;
0 11 2 exchange Ljdk/incubator/http/Http1Exchange<TT;>;
0 11 3 asyncReceiver Ljdk/incubator/http/Http1AsyncReceiver;
Signature: (Ljdk/incubator/http/HttpConnection;Ljdk/incubator/http/Http1Exchange<TT;>;Ljdk/incubator/http/Http1AsyncReceiver;)V
MethodParameters:
Name Flags
conn
exchange
asyncReceiver
public java.util.concurrent.CompletableFuture<jdk.incubator.http.Response> readHeadersAsync(java.util.concurrent.Executor);
descriptor: (Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 0
invokedynamic get(Ljdk/incubator/http/Http1Response;)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/incubator/http/Http1Response.lambda$3()Ljava/lang/String; (7)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
1: aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 0
getfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
invokevirtual jdk.incubator.http.Http1AsyncReceiver.unsubscribe:(Ljdk/incubator/http/Http1AsyncReceiver$Http1AsyncDelegate;)V
2: aload 0
getfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
invokevirtual jdk.incubator.http.Http1Response$BodyReader.reset:()V
3: new jdk.incubator.http.Http1HeaderParser
dup
invokespecial jdk.incubator.http.Http1HeaderParser.<init>:()V
astore 2
start local 2 4: aload 0
getstatic jdk.incubator.http.Http1Response$State.READING_HEADERS:Ljdk/incubator/http/Http1Response$State;
putfield jdk.incubator.http.Http1Response.readProgress:Ljdk/incubator/http/Http1Response$State;
5: aload 0
getfield jdk.incubator.http.Http1Response.headersReader:Ljdk/incubator/http/Http1Response$HeadersReader;
aload 2
invokevirtual jdk.incubator.http.Http1Response$HeadersReader.start:(Ljdk/incubator/http/Http1HeaderParser;)V
6: aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 0
getfield jdk.incubator.http.Http1Response.headersReader:Ljdk/incubator/http/Http1Response$HeadersReader;
invokevirtual jdk.incubator.http.Http1AsyncReceiver.subscribe:(Ljdk/incubator/http/Http1AsyncReceiver$Http1AsyncDelegate;)V
7: aload 0
getfield jdk.incubator.http.Http1Response.headersReader:Ljdk/incubator/http/Http1Response$HeadersReader;
invokevirtual jdk.incubator.http.Http1Response$HeadersReader.completion:()Ljava/util/concurrent/CompletableFuture;
astore 3
start local 3 8: getstatic jdk.incubator.http.Http1Response.$assertionsDisabled:Z
ifne 9
aload 3
ifnonnull 9
new java.lang.AssertionError
dup
ldc "parsing not started"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
9: StackMap locals: jdk.incubator.http.Http1HeaderParser java.util.concurrent.CompletableFuture
StackMap stack:
aload 0
aload 2
invokedynamic apply(Ljdk/incubator/http/Http1Response;Ljdk/incubator/http/Http1HeaderParser;)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/incubator/http/Http1Response.lambda$4(Ljdk/incubator/http/Http1HeaderParser;Ljdk/incubator/http/Http1Response$State;)Ljdk/incubator/http/Response; (7)
(Ljdk/incubator/http/Http1Response$State;)Ljdk/incubator/http/Response;
astore 4
start local 4 10: aload 1
ifnull 12
11: aload 3
aload 4
aload 1
invokevirtual java.util.concurrent.CompletableFuture.thenApplyAsync:(Ljava/util/function/Function;Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
areturn
12: StackMap locals: java.util.function.Function
StackMap stack:
aload 3
aload 4
invokevirtual java.util.concurrent.CompletableFuture.thenApply:(Ljava/util/function/Function;)Ljava/util/concurrent/CompletableFuture;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 13 1 executor Ljava/util/concurrent/Executor;
4 13 2 hd Ljdk/incubator/http/Http1HeaderParser;
8 13 3 cf Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/Http1Response$State;>;
10 13 4 lambda Ljava/util/function/Function<Ljdk/incubator/http/Http1Response$State;Ljdk/incubator/http/Response;>;
Signature: (Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/Response;>;
MethodParameters:
Name Flags
executor
synchronized void completed();
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.Http1Response.finished:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/Http1Response<TT;>;
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.Http1Response.finished:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Response<TT;>;
int fixupContentLen(int);
descriptor: (I)I
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http1Response.request:Ljdk/incubator/http/HttpRequestImpl;
invokevirtual jdk.incubator.http.HttpRequestImpl.method:()Ljava/lang/String;
ldc "HEAD"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iload 1
iconst_m1
if_icmpne 7
3: aload 0
getfield jdk.incubator.http.Http1Response.headers:Ljdk/incubator/http/HttpHeaders;
ldc "Transfer-encoding"
invokevirtual jdk.incubator.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
ldc ""
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
4: ldc "chunked"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
5: iconst_m1
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
7: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 8 1 clen I
MethodParameters:
Name Flags
clen
public java.util.concurrent.CompletableFuture<java.lang.Void> ignoreBody(java.util.concurrent.Executor);
descriptor: (Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http1Response.headers:Ljdk/incubator/http/HttpHeaders;
ldc "Content-Length"
invokevirtual jdk.incubator.http.HttpHeaders.firstValueAsLong:(Ljava/lang/String;)Ljava/util/OptionalLong;
ldc -1
invokevirtual java.util.OptionalLong.orElse:(J)J
l2i
istore 2
start local 2 1: iload 2
iconst_m1
if_icmpeq 2
iload 2
sipush 1024
if_icmple 4
2: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.close:()V
3: aconst_null
invokestatic jdk.incubator.http.internal.common.MinimalFuture.completedFuture:(Ljava/lang/Object;)Ljdk/incubator/http/internal/common/MinimalFuture;
areturn
4: StackMap locals:
StackMap stack:
aload 0
aconst_null
invokestatic jdk.incubator.http.HttpResponse$BodySubscriber.discard:(Ljava/lang/Object;)Ljdk/incubator/http/HttpResponse$BodySubscriber;
iconst_1
aload 1
invokevirtual jdk.incubator.http.Http1Response.readBody:(Ljdk/incubator/http/HttpResponse$BodySubscriber;ZLjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 5 1 executor Ljava/util/concurrent/Executor;
1 5 2 clen I
Signature: (Ljava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture<Ljava/lang/Void;>;
MethodParameters:
Name Flags
executor
public <U> java.util.concurrent.CompletableFuture<U> readBody(jdk.incubator.http.HttpResponse$BodySubscriber<U>, boolean, java.util.concurrent.Executor);
descriptor: (Ljdk/incubator/http/HttpResponse$BodySubscriber;ZLjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
iload 2
putfield jdk.incubator.http.Http1Response.return2Cache:Z
1: aload 1
astore 4
start local 4 2: aload 1
invokeinterface jdk.incubator.http.HttpResponse$BodySubscriber.getBody:()Ljava/util/concurrent/CompletionStage;
astore 5
start local 5 3: aload 5
invokestatic jdk.incubator.http.internal.common.MinimalFuture.of:(Ljava/util/concurrent/CompletionStage;)Ljdk/incubator/http/internal/common/MinimalFuture;
astore 6
start local 6 4: aload 0
getfield jdk.incubator.http.Http1Response.headers:Ljdk/incubator/http/HttpHeaders;
ldc "Content-Length"
invokevirtual jdk.incubator.http.HttpHeaders.firstValueAsLong:(Ljava/lang/String;)Ljava/util/OptionalLong;
ldc -1
invokevirtual java.util.OptionalLong.orElse:(J)J
l2i
istore 7
start local 7 5: aload 0
iload 7
invokevirtual jdk.incubator.http.Http1Response.fixupContentLen:(I)I
istore 8
start local 8 6: aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 0
getfield jdk.incubator.http.Http1Response.headersReader:Ljdk/incubator/http/Http1Response$HeadersReader;
invokevirtual jdk.incubator.http.Http1AsyncReceiver.unsubscribe:(Ljdk/incubator/http/Http1AsyncReceiver$Http1AsyncDelegate;)V
7: aload 0
getfield jdk.incubator.http.Http1Response.headersReader:Ljdk/incubator/http/Http1Response$HeadersReader;
invokevirtual jdk.incubator.http.Http1Response$HeadersReader.reset:()V
8: aload 3
aload 0
iload 8
aload 4
aload 6
invokedynamic run(Ljdk/incubator/http/Http1Response;ILjdk/incubator/http/HttpResponse$BodySubscriber;Ljava/util/concurrent/CompletableFuture;)Ljava/lang/Runnable;
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:
()V
jdk/incubator/http/Http1Response.lambda$6(ILjdk/incubator/http/HttpResponse$BodySubscriber;Ljava/util/concurrent/CompletableFuture;)V (7)
()V
invokeinterface java.util.concurrent.Executor.execute:(Ljava/lang/Runnable;)V
9: aload 6
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 10 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 10 1 p Ljdk/incubator/http/HttpResponse$BodySubscriber<TU;>;
0 10 2 return2Cache Z
0 10 3 executor Ljava/util/concurrent/Executor;
2 10 4 pusher Ljdk/incubator/http/HttpResponse$BodySubscriber<TU;>;
3 10 5 bodyCF Ljava/util/concurrent/CompletionStage<TU;>;
4 10 6 cf Ljava/util/concurrent/CompletableFuture<TU;>;
5 10 7 clen0 I
6 10 8 clen I
Signature: <U:Ljava/lang/Object;>(Ljdk/incubator/http/HttpResponse$BodySubscriber<TU;>;ZLjava/util/concurrent/Executor;)Ljava/util/concurrent/CompletableFuture<TU;>;
MethodParameters:
Name Flags
p
return2Cache
executor
private void onFinished();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
invokevirtual jdk.incubator.http.Http1AsyncReceiver.clear:()V
1: aload 0
getfield jdk.incubator.http.Http1Response.return2Cache:Z
ifeq 7
2: ldc "Attempting to return connection to the pool: {0}"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
aastore
invokestatic jdk.incubator.http.internal.common.Log.logTrace:(Ljava/lang/String;[Ljava/lang/Object;)V
3: aload 0
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 0
invokedynamic get(Ljdk/incubator/http/Http1Response;)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/incubator/http/Http1Response.lambda$12()Ljava/lang/String; (7)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
4: aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
aload 0
getfield jdk.incubator.http.Http1Response.eof:Ljava/io/EOFException;
ifnonnull 5
aload 0
getfield jdk.incubator.http.Http1Response.headers:Ljdk/incubator/http/HttpHeaders;
goto 6
StackMap locals:
StackMap stack: jdk.incubator.http.HttpConnection
5: aconst_null
StackMap locals: jdk.incubator.http.Http1Response
StackMap stack: jdk.incubator.http.HttpConnection jdk.incubator.http.HttpHeaders
6: invokevirtual jdk.incubator.http.HttpConnection.closeOrReturnToCache:(Ljdk/incubator/http/HttpHeaders;)V
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/incubator/http/Http1Response<TT;>;
jdk.incubator.http.HttpHeaders ();
descriptor: ()Ljdk/incubator/http/HttpHeaders;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Response.headers:Ljdk/incubator/http/HttpHeaders;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Response<TT;>;
int responseCode();
descriptor: ()I
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Response.responseCode:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Response<TT;>;
void onReadError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic jdk.incubator.http.internal.common.Log.logError:(Ljava/lang/Throwable;)V
1: aload 0
aload 0
getfield jdk.incubator.http.Http1Response.readProgress:Ljdk/incubator/http/Http1Response$State;
invokevirtual jdk.incubator.http.Http1Response.receiver:(Ljdk/incubator/http/Http1Response$State;)Ljdk/incubator/http/Http1Response$Receiver;
astore 2
start local 2 2: aload 1
instanceof java.io.EOFException
ifeq 5
3: aload 0
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "onReadError: received EOF"
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;)V
4: aload 0
aload 1
checkcast java.io.EOFException
putfield jdk.incubator.http.Http1Response.eof:Ljava/io/EOFException;
5: StackMap locals: jdk.incubator.http.Http1Response$Receiver
StackMap stack:
aload 2
ifnonnull 6
aconst_null
goto 7
StackMap locals:
StackMap stack:
6: aload 2
invokevirtual jdk.incubator.http.Http1Response$Receiver.completion:()Ljava/util/concurrent/CompletableFuture;
StackMap locals:
StackMap stack: java.util.concurrent.CompletableFuture
7: astore 3
start local 3 8: aload 0
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 3
invokedynamic get(Ljava/util/concurrent/CompletableFuture;)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/incubator/http/Http1Response.lambda$13(Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
9: aload 3
ifnull 10
aload 3
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifne 10
aload 3
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
goto 11
10: StackMap locals: java.util.concurrent.CompletableFuture
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "onReadError"
aload 1
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;Ljava/lang/Throwable;)V
11: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 1
invokedynamic get(Ljava/lang/Throwable;)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/incubator/http/Http1Response.lambda$14(Ljava/lang/Throwable;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
12: aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.close:()V
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 14 1 t Ljava/lang/Throwable;
2 14 2 receiver Ljdk/incubator/http/Http1Response$Receiver<*>;
8 14 3 cf Ljava/util/concurrent/CompletableFuture<*>;
MethodParameters:
Name Flags
t
private jdk.incubator.http.Http1Response$State advance(jdk.incubator.http.Http1Response$State);
descriptor: (Ljdk/incubator/http/Http1Response$State;)Ljdk/incubator/http/Http1Response$State;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: getstatic jdk.incubator.http.Http1Response.$assertionsDisabled:Z
ifne 1
aload 0
getfield jdk.incubator.http.Http1Response.readProgress:Ljdk/incubator/http/Http1Response$State;
aload 1
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
invokestatic jdk.incubator.http.Http1Response.$SWITCH_TABLE$jdk$incubator$http$Http1Response$State:()[I
aload 1
invokevirtual jdk.incubator.http.Http1Response$State.ordinal:()I
iaload
tableswitch { // 2 - 3
2: 2
3: 4
default: 6
}
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 0
getfield jdk.incubator.http.Http1Response.headersReader:Ljdk/incubator/http/Http1Response$HeadersReader;
invokevirtual jdk.incubator.http.Http1AsyncReceiver.unsubscribe:(Ljdk/incubator/http/Http1AsyncReceiver$Http1AsyncDelegate;)V
3: aload 0
getstatic jdk.incubator.http.Http1Response$State.READING_BODY:Ljdk/incubator/http/Http1Response$State;
dup_x1
putfield jdk.incubator.http.Http1Response.readProgress:Ljdk/incubator/http/Http1Response$State;
areturn
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 0
getfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
invokevirtual jdk.incubator.http.Http1AsyncReceiver.unsubscribe:(Ljdk/incubator/http/Http1AsyncReceiver$Http1AsyncDelegate;)V
5: aload 0
getstatic jdk.incubator.http.Http1Response$State.DONE:Ljdk/incubator/http/Http1Response$State;
dup_x1
putfield jdk.incubator.http.Http1Response.readProgress:Ljdk/incubator/http/Http1Response$State;
areturn
6: StackMap locals:
StackMap stack:
new java.lang.InternalError
dup
new java.lang.StringBuilder
dup
ldc "can't advance from "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 7 1 previous Ljdk/incubator/http/Http1Response$State;
MethodParameters:
Name Flags
previous
jdk.incubator.http.Http1Response$Receiver<?> receiver(jdk.incubator.http.Http1Response$State);
descriptor: (Ljdk/incubator/http/Http1Response$State;)Ljdk/incubator/http/Http1Response$Receiver;
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: invokestatic jdk.incubator.http.Http1Response.$SWITCH_TABLE$jdk$incubator$http$Http1Response$State:()[I
aload 1
invokevirtual jdk.incubator.http.Http1Response$State.ordinal:()I
iaload
tableswitch { // 2 - 3
2: 1
3: 2
default: 3
}
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response.headersReader:Ljdk/incubator/http/Http1Response$HeadersReader;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
areturn
3: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 4 1 state Ljdk/incubator/http/Http1Response$State;
Signature: (Ljdk/incubator/http/Http1Response$State;)Ljdk/incubator/http/Http1Response$Receiver<*>;
MethodParameters:
Name Flags
state
static int[] $SWITCH_TABLE$jdk$incubator$http$Http1Response$State();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic jdk.incubator.http.Http1Response.$SWITCH_TABLE$jdk$incubator$http$Http1Response$State:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic jdk.incubator.http.Http1Response$State.values:()[Ljdk/incubator/http/Http1Response$State;
arraylength
newarray 10
astore 0
2: aload 0
getstatic jdk.incubator.http.Http1Response$State.DONE:Ljdk/incubator/http/Http1Response$State;
invokevirtual jdk.incubator.http.Http1Response$State.ordinal:()I
iconst_4
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic jdk.incubator.http.Http1Response$State.INITIAL:Ljdk/incubator/http/Http1Response$State;
invokevirtual jdk.incubator.http.Http1Response$State.ordinal:()I
iconst_1
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic jdk.incubator.http.Http1Response$State.READING_BODY:Ljdk/incubator/http/Http1Response$State;
invokevirtual jdk.incubator.http.Http1Response$State.ordinal:()I
iconst_3
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic jdk.incubator.http.Http1Response$State.READING_HEADERS:Ljdk/incubator/http/Http1Response$State;
invokevirtual jdk.incubator.http.Http1Response$State.ordinal:()I
iconst_2
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
dup
putstatic jdk.incubator.http.Http1Response.$SWITCH_TABLE$jdk$incubator$http$Http1Response$State:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
private java.lang.String lambda$3();
descriptor: ()Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Reading Headers: (remaining: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
invokevirtual jdk.incubator.http.Http1AsyncReceiver.remaining:()J
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
ldc ") "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.incubator.http.Http1Response.readProgress:Ljdk/incubator/http/Http1Response$State;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/Http1Response<TT;>;
private jdk.incubator.http.Response (jdk.incubator.http.Http1HeaderParser, jdk.incubator.http.Http1Response$State);
descriptor: (Ljdk/incubator/http/Http1HeaderParser;Ljdk/incubator/http/Http1Response$State;)Ljdk/incubator/http/Response;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=8, locals=3, args_size=3
start local 0 start local 2 0: getstatic jdk.incubator.http.Http1Response.$assertionsDisabled:Z
ifne 1
aload 2
getstatic jdk.incubator.http.Http1Response$State.READING_HEADERS:Ljdk/incubator/http/Http1Response$State;
if_acmpeq 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 0
invokedynamic get(Ljdk/incubator/http/Http1Response;)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/incubator/http/Http1Response.lambda$5()Ljava/lang/String; (7)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
2: aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 0
getfield jdk.incubator.http.Http1Response.headersReader:Ljdk/incubator/http/Http1Response$HeadersReader;
invokevirtual jdk.incubator.http.Http1AsyncReceiver.unsubscribe:(Ljdk/incubator/http/Http1AsyncReceiver$Http1AsyncDelegate;)V
3: aload 0
aload 1
invokevirtual jdk.incubator.http.Http1HeaderParser.responseCode:()I
putfield jdk.incubator.http.Http1Response.responseCode:I
4: aload 0
aload 1
invokevirtual jdk.incubator.http.Http1HeaderParser.headers:()Ljdk/incubator/http/HttpHeaders;
putfield jdk.incubator.http.Http1Response.headers:Ljdk/incubator/http/HttpHeaders;
5: aload 0
new jdk.incubator.http.Response
dup
aload 0
getfield jdk.incubator.http.Http1Response.request:Ljdk/incubator/http/HttpRequestImpl;
6: aload 0
getfield jdk.incubator.http.Http1Response.exchange:Ljdk/incubator/http/Http1Exchange;
invokevirtual jdk.incubator.http.Http1Exchange.getExchange:()Ljdk/incubator/http/Exchange;
7: aload 0
getfield jdk.incubator.http.Http1Response.headers:Ljdk/incubator/http/HttpHeaders;
8: aload 0
getfield jdk.incubator.http.Http1Response.responseCode:I
9: getstatic jdk.incubator.http.HttpClient$Version.HTTP_1_1:Ljdk/incubator/http/HttpClient$Version;
invokespecial jdk.incubator.http.Response.<init>:(Ljdk/incubator/http/HttpRequestImpl;Ljdk/incubator/http/Exchange;Ljdk/incubator/http/HttpHeaders;ILjdk/incubator/http/HttpClient$Version;)V
10: putfield jdk.incubator.http.Http1Response.response:Ljdk/incubator/http/Response;
11: aload 0
getfield jdk.incubator.http.Http1Response.response:Ljdk/incubator/http/Response;
areturn
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 12 2 completed Ljdk/incubator/http/Http1Response$State;
private void lambda$6(int, jdk.incubator.http.HttpResponse$BodySubscriber, java.util.concurrent.CompletableFuture);
descriptor: (ILjdk/incubator/http/HttpResponse$BodySubscriber;Ljava/util/concurrent/CompletableFuture;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=8, locals=8, args_size=4
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.client:()Ljdk/incubator/http/HttpClientImpl;
astore 4
start local 4 1: aload 0
new jdk.incubator.http.ResponseContent
dup
2: aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
iload 1
aload 0
getfield jdk.incubator.http.Http1Response.headers:Ljdk/incubator/http/HttpHeaders;
aload 2
3: aload 0
invokedynamic run(Ljdk/incubator/http/Http1Response;)Ljava/lang/Runnable;
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:
()V
jdk/incubator/http/Http1Response.onFinished()V (7)
()V
invokespecial jdk.incubator.http.ResponseContent.<init>:(Ljdk/incubator/http/HttpConnection;ILjdk/incubator/http/HttpHeaders;Ljdk/incubator/http/HttpResponse$BodySubscriber;Ljava/lang/Runnable;)V
4: putfield jdk.incubator.http.Http1Response.content:Ljdk/incubator/http/ResponseContent;
5: aload 3
invokevirtual java.util.concurrent.CompletableFuture.isCompletedExceptionally:()Z
ifeq 8
6: aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.close:()V
7: return
8: StackMap locals: jdk.incubator.http.HttpClientImpl
StackMap stack:
aload 4
invokevirtual jdk.incubator.http.HttpClientImpl.reference:()J
pop2
9: aload 0
getfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
aload 0
getfield jdk.incubator.http.Http1Response.content:Ljdk/incubator/http/ResponseContent;
10: aload 0
aload 4
aload 2
aload 3
invokedynamic accept(Ljdk/incubator/http/Http1Response;Ljdk/incubator/http/HttpClientImpl;Ljdk/incubator/http/HttpResponse$BodySubscriber;Ljava/util/concurrent/CompletableFuture;)Ljava/util/function/Consumer;
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;)V
jdk/incubator/http/Http1Response.lambda$8(Ljdk/incubator/http/HttpClientImpl;Ljdk/incubator/http/HttpResponse$BodySubscriber;Ljava/util/concurrent/CompletableFuture;Ljava/lang/Throwable;)V (7)
(Ljava/lang/Throwable;)V
11: invokevirtual jdk.incubator.http.ResponseContent.getBodyParser:(Ljava/util/function/Consumer;)Ljdk/incubator/http/ResponseContent$BodyParser;
invokevirtual jdk.incubator.http.Http1Response$BodyReader.start:(Ljdk/incubator/http/ResponseContent$BodyParser;)V
12: aload 0
getfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
invokevirtual jdk.incubator.http.Http1Response$BodyReader.completion:()Ljava/util/concurrent/CompletableFuture;
astore 6
start local 6 13: aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 0
getfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
invokevirtual jdk.incubator.http.Http1AsyncReceiver.subscribe:(Ljdk/incubator/http/Http1AsyncReceiver$Http1AsyncDelegate;)V
14: getstatic jdk.incubator.http.Http1Response.$assertionsDisabled:Z
ifne 15
aload 6
ifnonnull 15
new java.lang.AssertionError
dup
ldc "parsing not started"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
15: StackMap locals: jdk.incubator.http.Http1Response int jdk.incubator.http.HttpResponse$BodySubscriber java.util.concurrent.CompletableFuture jdk.incubator.http.HttpClientImpl top java.util.concurrent.CompletableFuture
StackMap stack:
aload 6
aload 0
aload 3
aload 2
invokedynamic accept(Ljdk/incubator/http/Http1Response;Ljava/util/concurrent/CompletableFuture;Ljdk/incubator/http/HttpResponse$BodySubscriber;)Ljava/util/function/BiConsumer;
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;)V
jdk/incubator/http/Http1Response.lambda$9(Ljava/util/concurrent/CompletableFuture;Ljdk/incubator/http/HttpResponse$BodySubscriber;Ljdk/incubator/http/Http1Response$State;Ljava/lang/Throwable;)V (7)
(Ljdk/incubator/http/Http1Response$State;Ljava/lang/Throwable;)V
invokevirtual java.util.concurrent.CompletableFuture.whenComplete:(Ljava/util/function/BiConsumer;)Ljava/util/concurrent/CompletableFuture;
astore 7
start local 7 16: aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
aload 7
invokevirtual jdk.incubator.http.HttpConnection.addTrailingOperation:(Ljava/util/concurrent/CompletionStage;)V
end local 7 end local 6 end local 4 17: goto 28
StackMap locals: jdk.incubator.http.Http1Response int jdk.incubator.http.HttpResponse$BodySubscriber java.util.concurrent.CompletableFuture
StackMap stack: java.lang.Throwable
18: astore 4
start local 4 19: aload 0
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 4
invokedynamic get(Ljava/lang/Throwable;)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/incubator/http/Http1Response.lambda$11(Ljava/lang/Throwable;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
20: aload 3
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifne 27
21: aload 2
aload 4
invokeinterface jdk.incubator.http.HttpResponse$BodySubscriber.onError:(Ljava/lang/Throwable;)V
22: aload 3
aload 4
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
23: goto 27
StackMap locals: jdk.incubator.http.Http1Response int jdk.incubator.http.HttpResponse$BodySubscriber java.util.concurrent.CompletableFuture java.lang.Throwable
StackMap stack: java.lang.Throwable
24: astore 5
25: aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 4
invokevirtual jdk.incubator.http.Http1AsyncReceiver.onReadError:(Ljava/lang/Throwable;)V
26: aload 5
athrow
27: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 4
invokevirtual jdk.incubator.http.Http1AsyncReceiver.onReadError:(Ljava/lang/Throwable;)V
end local 4 28: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Ljdk/incubator/http/Http1Response<TT;>;
1 17 4 client Ljdk/incubator/http/HttpClientImpl;
13 17 6 bodyReaderCF Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/Http1Response$State;>;
16 17 7 trailingOp Ljava/util/concurrent/CompletableFuture<*>;
19 28 4 t Ljava/lang/Throwable;
Exception table:
from to target type
0 7 18 Class java.lang.Throwable
8 17 18 Class java.lang.Throwable
20 24 24 any
private java.lang.String lambda$12();
descriptor: ()Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.getConnectionFlow:()Ljdk/incubator/http/internal/common/FlowTube;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
1: ldc ": return to HTTP/1.1 pool"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/Http1Response<TT;>;
private static java.lang.String lambda$13(java.util.concurrent.CompletableFuture);
descriptor: (Ljava/util/concurrent/CompletableFuture;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "onReadError: cf is "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
ifnonnull 2
ldc "null"
goto 4
2: StackMap locals:
StackMap stack: java.lang.StringBuilder
aload 0
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 3
ldc "already completed"
goto 4
3: StackMap locals:
StackMap stack: java.lang.StringBuilder
ldc "not yet completed"
4: StackMap locals: java.util.concurrent.CompletableFuture
StackMap stack: java.lang.StringBuilder java.lang.String
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$14(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "closing connection: cause is "
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;
areturn
LocalVariableTable:
Start End Slot Name Signature
private java.lang.String lambda$5();
descriptor: ()Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "Reading Headers: creating Response object; state is now "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.Http1Response.readProgress:Ljdk/incubator/http/Http1Response$State;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/Http1Response<TT;>;
private void lambda$8(jdk.incubator.http.HttpClientImpl, jdk.incubator.http.HttpResponse$BodySubscriber, java.util.concurrent.CompletableFuture, java.lang.Throwable);
descriptor: (Ljdk/incubator/http/HttpClientImpl;Ljdk/incubator/http/HttpResponse$BodySubscriber;Ljava/util/concurrent/CompletableFuture;Ljava/lang/Throwable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=6, args_size=5
start local 0 start local 4 0: aload 4
ifnull 10
1: aload 2
aload 4
invokeinterface jdk.incubator.http.HttpResponse$BodySubscriber.onError:(Ljava/lang/Throwable;)V
2: aload 0
getfield jdk.incubator.http.Http1Response.connection:Ljdk/incubator/http/HttpConnection;
invokevirtual jdk.incubator.http.HttpConnection.close:()V
3: aload 3
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifne 10
4: aload 3
aload 4
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
5: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 5
7: aload 1
invokevirtual jdk.incubator.http.HttpClientImpl.unreference:()J
pop2
8: aload 0
getfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
aload 4
invokevirtual jdk.incubator.http.Http1Response$BodyReader.onComplete:(Ljava/lang/Throwable;)V
9: aload 5
athrow
10: StackMap locals:
StackMap stack:
aload 1
invokevirtual jdk.incubator.http.HttpClientImpl.unreference:()J
pop2
11: aload 0
getfield jdk.incubator.http.Http1Response.bodyReader:Ljdk/incubator/http/Http1Response$BodyReader;
aload 4
invokevirtual jdk.incubator.http.Http1Response$BodyReader.onComplete:(Ljava/lang/Throwable;)V
12: return
end local 4 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 13 4 t Ljava/lang/Throwable;
Exception table:
from to target type
0 6 6 any
private void lambda$9(java.util.concurrent.CompletableFuture, jdk.incubator.http.HttpResponse$BodySubscriber, jdk.incubator.http.Http1Response$State, java.lang.Throwable);
descriptor: (Ljava/util/concurrent/CompletableFuture;Ljdk/incubator/http/HttpResponse$BodySubscriber;Ljdk/incubator/http/Http1Response$State;Ljava/lang/Throwable;)V
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=6, args_size=5
start local 0 start local 3 start local 4 0: aload 4
invokestatic jdk.incubator.http.internal.common.Utils.getCompletionCause:(Ljava/lang/Throwable;)Ljava/lang/Throwable;
astore 4
1: aload 4
ifnull 4
2: aload 0
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 3
invokedynamic get(Ljdk/incubator/http/Http1Response$State;)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/incubator/http/Http1Response.lambda$10(Ljdk/incubator/http/Http1Response$State;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
3: getstatic jdk.incubator.http.Http1Response.$assertionsDisabled:Z
ifne 4
aload 3
getstatic jdk.incubator.http.Http1Response$State.READING_BODY:Ljdk/incubator/http/Http1Response$State;
if_acmpeq 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 4
ifnull 10
aload 1
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifne 10
5: aload 2
aload 4
invokeinterface jdk.incubator.http.HttpResponse$BodySubscriber.onError:(Ljava/lang/Throwable;)V
6: aload 1
aload 4
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 5
start local 5 9: aload 0
getfield jdk.incubator.http.Http1Response.asyncReceiver:Ljdk/incubator/http/Http1AsyncReceiver;
aload 5
invokevirtual jdk.incubator.http.Http1AsyncReceiver.onReadError:(Ljava/lang/Throwable;)V
end local 5 10: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/incubator/http/Http1Response<TT;>;
0 11 3 s Ljdk/incubator/http/Http1Response$State;
0 11 4 t Ljava/lang/Throwable;
9 10 5 x Ljava/lang/Throwable;
Exception table:
from to target type
1 7 8 Class java.lang.Throwable
private static java.lang.String lambda$11(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "Failed reading body: "
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;
areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$10(jdk.incubator.http.Http1Response$State);
descriptor: (Ljdk/incubator/http/Http1Response$State;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "Finished reading body: "
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;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;
SourceFile: "Http1Response.java"
NestMembers:
jdk.incubator.http.Http1Response$BodyReader jdk.incubator.http.Http1Response$HeadersReader jdk.incubator.http.Http1Response$Receiver jdk.incubator.http.Http1Response$State
InnerClasses:
public abstract Logger = java.lang.System$Logger of java.lang.System
public final Level = java.lang.System$Logger$Level of java.lang.System$Logger
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
abstract Http1AsyncDelegate = jdk.incubator.http.Http1AsyncReceiver$Http1AsyncDelegate of jdk.incubator.http.Http1AsyncReceiver
final BodyReader = jdk.incubator.http.Http1Response$BodyReader of jdk.incubator.http.Http1Response
final HeadersReader = jdk.incubator.http.Http1Response$HeadersReader of jdk.incubator.http.Http1Response
abstract Receiver = jdk.incubator.http.Http1Response$Receiver of jdk.incubator.http.Http1Response
final State = jdk.incubator.http.Http1Response$State of jdk.incubator.http.Http1Response
public final Version = jdk.incubator.http.HttpClient$Version of jdk.incubator.http.HttpClient
public abstract BodySubscriber = jdk.incubator.http.HttpResponse$BodySubscriber of jdk.incubator.http.HttpResponse
abstract BodyParser = jdk.incubator.http.ResponseContent$BodyParser of jdk.incubator.http.ResponseContent