java.lang.Object
robaho.net.httpserver.http2.HTTP2Stream
-
Constructor Summary
ConstructorsConstructorDescriptionHTTP2Stream(int streamId, HTTP2Connection connection, Headers requestHeaders, HTTP2Connection.StreamHandler handler) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voiddebug()booleanbooleanisOpen()voidprocessFrame(BaseFrame frame) toString()voidwriteResponseHeaders(boolean closeStream)
-
Constructor Details
-
HTTP2Stream
public HTTP2Stream(int streamId, HTTP2Connection connection, Headers requestHeaders, HTTP2Connection.StreamHandler handler) throws IOException - Throws:
IOException
-
-
Method Details
-
getOutputStream
-
getRequestHeaders
-
getResponseHeaders
-
toString
-
debug
public void debug() -
isOpen
public boolean isOpen() -
isHalfClosed
public boolean isHalfClosed() -
getSSLSession
-
close
public void close() -
processFrame
- Throws:
HTTP2ExceptionIOException
-
writeResponseHeaders
- 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
-
getRemoteAddress
-