Interface Variant

  • All Known Implementing Classes:
    Http2, Spdy3

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

      • getProtocol

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

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

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