public final class Http2 extends Object implements Variant
This implementation assumes we do not send an increased
frame size setting
to the peer. Hence, we
expect all frames to have a max length of INITIAL_MAX_FRAME_SIZE
.
http://tools.ietf.org/html/draft-ietf-httpbis-http2-17
Constructor and Description |
---|
Http2() |
Modifier and Type | Method and Description |
---|---|
Protocol |
getProtocol()
The protocol as selected using ALPN.
|
FrameReader |
newReader(okio.BufferedSource source,
boolean client)
Creates a frame reader with max header table size of 4096 and data frame
compression disabled.
|
FrameWriter |
newWriter(okio.BufferedSink sink,
boolean client) |
public Protocol getProtocol()
Variant
getProtocol
in interface Variant
public FrameReader newReader(okio.BufferedSource source, boolean client)
public FrameWriter newWriter(okio.BufferedSink sink, boolean client)
Copyright © 2016. All rights reserved.