src/jdk.incubator.httpclient/share/classes/jdk/incubator/http/ResponseContent.java
equal
deleted
inserted
replaced
111 return new FixedLengthBodyParser(contentLength, onComplete); |
111 return new FixedLengthBodyParser(contentLength, onComplete); |
112 } |
112 } |
113 } |
113 } |
114 |
114 |
115 |
115 |
116 static enum ChunkState {READING_LENGTH, READING_DATA, DONE}; |
116 static enum ChunkState {READING_LENGTH, READING_DATA, DONE} |
117 class ChunkedBodyParser implements BodyParser { |
117 class ChunkedBodyParser implements BodyParser { |
118 final ByteBuffer READMORE = Utils.EMPTY_BYTEBUFFER; |
118 final ByteBuffer READMORE = Utils.EMPTY_BYTEBUFFER; |
119 final Consumer<Throwable> onComplete; |
119 final Consumer<Throwable> onComplete; |
120 final System.Logger debug = Utils.getDebugLogger(this::dbgString, DEBUG); |
120 final System.Logger debug = Utils.getDebugLogger(this::dbgString, DEBUG); |
121 final String dbgTag = ResponseContent.this.dbgTag + "/ChunkedBodyParser"; |
121 final String dbgTag = ResponseContent.this.dbgTag + "/ChunkedBodyParser"; |