Class HTTP2Stream

java.lang.Object
robaho.net.httpserver.http2.HTTP2Stream

public class HTTP2Stream extends Object
  • Constructor Details

  • Method Details

    • getOutputStream

      public OutputStream getOutputStream()
    • getRequestHeaders

      public Headers getRequestHeaders()
    • getResponseHeaders

      public Headers getResponseHeaders()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • debug

      public void debug()
    • isOpen

      public boolean isOpen()
    • isHalfClosed

      public boolean isHalfClosed()
    • getSSLSession

      public SSLSession getSSLSession()
    • close

      public void close()
    • processFrame

      public void processFrame(BaseFrame frame) throws HTTP2Exception, IOException
      Throws:
      HTTP2Exception
      IOException
    • writeResponseHeaders

      public void writeResponseHeaders(boolean closeStream) throws IOException
      Parameters:
      closeStream - if true the output stream is closed, and any attempts to write data to the stream will fail. This is an optimization that allows the CLOSE_STREAM bit to be set in the Headers frame, reducing the packet count.
      Throws:
      IOException
    • getLocalAddress

      public InetSocketAddress getLocalAddress()
    • getRemoteAddress

      public InetSocketAddress getRemoteAddress()