Class Http2
- java.lang.Object
-
- com.squareup.okhttp.internal.framed.Http2
-
- All Implemented Interfaces:
Variant
public final class Http2 extends Object implements Variant
Read and write HTTP/2 frames.This implementation assumes we do not send an increased
frame size settingto the peer. Hence, we expect all frames to have a max length ofINITIAL_MAX_FRAME_SIZE.http://tools.ietf.org/html/draft-ietf-httpbis-http2-17
-
-
Constructor Summary
Constructors Constructor Description Http2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ProtocolgetProtocol()The protocol as selected using ALPN.FrameReadernewReader(BufferedSource source, boolean client)Creates a frame reader with max header table size of 4096 and data frame compression disabled.FrameWriternewWriter(BufferedSink sink, boolean client)
-
-
-
Method Detail
-
getProtocol
public Protocol getProtocol()
Description copied from interface:VariantThe protocol as selected using ALPN.- Specified by:
getProtocolin interfaceVariant
-
newReader
public FrameReader newReader(BufferedSource source, boolean client)
Creates a frame reader with max header table size of 4096 and data frame compression disabled.
-
newWriter
public FrameWriter newWriter(BufferedSink sink, boolean client)
-
-