Interface Variant

  • All Known Implementing Classes:
    Http2, Spdy3


    public interface Variant
    A version and dialect of the framed socket protocol.
    • Method Summary

      Modifier and Type Method and Description
      Protocol getProtocol()
      The protocol as selected using ALPN.
      FrameReader newReader(okio.BufferedSource source, boolean client)
       
      FrameWriter newWriter(okio.BufferedSink sink, boolean client)
       
    • Method Detail

      • getProtocol

        Protocol getProtocol()
        The protocol as selected using ALPN.
      • newReader

        FrameReader newReader(okio.BufferedSource source,
                              boolean client)
        Parameters:
        client - true if this is the HTTP client's reader, reading frames from a server.
      • newWriter

        FrameWriter newWriter(okio.BufferedSink sink,
                              boolean client)
        Parameters:
        client - true if this is the HTTP client's writer, writing frames to a server.