public final class Http2Reader extends Object implements Closeable
frame size设置。
因此,我们希望所有帧的最大长度为Http2.INITIAL_MAX_FRAME_SIZE。| Modifier and Type | Field and Description |
|---|---|
boolean |
client |
org.aoju.bus.http.metric.http.Http2Reader.ContinuationSource |
continuation |
org.aoju.bus.http.metric.http.Hpack.Reader |
hpackReader |
BufferSource |
source |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
nextFrame(boolean requireSettings,
org.aoju.bus.http.metric.http.Http2Reader.Handler handler) |
void |
readConnectionPreface(org.aoju.bus.http.metric.http.Http2Reader.Handler handler) |
public final org.aoju.bus.http.metric.http.Hpack.Reader hpackReader
public final BufferSource source
public final org.aoju.bus.http.metric.http.Http2Reader.ContinuationSource continuation
public final boolean client
public void readConnectionPreface(org.aoju.bus.http.metric.http.Http2Reader.Handler handler)
throws IOException
IOExceptionpublic boolean nextFrame(boolean requireSettings,
org.aoju.bus.http.metric.http.Http2Reader.Handler handler)
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2019. All rights reserved.