Represents an HTTP connection.
HTTP/1.x connection provides an limited implementation, the following methods are implemented:Anything
Object
HttpConnection
Basic
Identifiable
Object
Anything
no subtypes hierarchy
Initializer |
HttpConnection(HttpConnection unknown) |
Inherited Attributes |
Attributes inherited from: Object hash , string |
Methods | |
close | shared default void close() Close the connection and all the currently active streams. An HTTP/2 connection will send a frame before. |
closeHandler | shared default HttpConnection closeHandler(Anything() handler) Set a close handler. The handler will get notified when the connection is closed. Parameters:
|
exceptionHandler | shared default HttpConnection exceptionHandler(Anything(Throwable) handler) Set an handler called when a connection error happens Parameters:
|
getWindowSize | shared default Integer getWindowSize() @return the current connection window size or |
goAway | shared default HttpConnection goAway(Integer errorCode) Like goAway with a last stream id |
goAway | shared default HttpConnection goAway(Integer errorCode, Integer lastStreamId) Like goAway with no buffer. |
goAway | shared default HttpConnection goAway(Integer errorCode, Integer lastStreamId, Buffer debugData) Send a go away frame to the remote endpoint of the connection.
Parameters:
|
goAwayHandler | shared default HttpConnection goAwayHandler(Anything(GoAway)? handler) Set an handler called when a frame is received. This is not implemented for HTTP/1.x.Parameters:
|
ping | shared default HttpConnection ping(Buffer data, Anything(Throwable|Buffer) pongHandler) Send a frame to the remote endpoint. This is not implemented for HTTP/1.x.Parameters:
|
pingHandler | shared default HttpConnection pingHandler(Anything(Buffer)? handler) Set an handler notified when a frame is received from the remote endpoint. This is not implemented for HTTP/1.x.Parameters:
|
remoteSettings | shared default Http2Settings remoteSettings() @return the current remote endpoint settings for this connection - this is not implemented for HTTP/1.x |
remoteSettingsHandler | shared default HttpConnection remoteSettingsHandler(Anything(Http2Settings) handler) Set an handler that is called when remote endpoint Http2Settings are updated. This is not implemented for HTTP/1.x.Parameters:
|
setWindowSize | shared default HttpConnection setWindowSize(Integer windowSize) Update the current connection wide window size to a new size. Increasing this value, gives better performance when several data streams are multiplexed This is not implemented for HTTP/1.x.Parameters:
|
settings | shared default Http2Settings settings() @return the latest server settings acknowledged by the remote endpoint - this is not implemented for HTTP/1.x |
shutdown | shared default HttpConnection shutdown() Initiate a connection shutdown, a go away frame is sent and the connection is closed when all current active streams are closed or after a time out of 30 seconds. This is not implemented for HTTP/1.x. |
shutdown | shared default HttpConnection shutdown(Integer timeoutMs) Initiate a connection shutdown, a go away frame is sent and the connection is closed when all current streams
will be closed or the Parameters:
|
shutdownHandler | shared default HttpConnection shutdownHandler(Anything()? handler) Set an handler called when a frame has been sent or received and all connections are closed. This is not implemented for HTTP/1.x.Parameters:
|
updateSettings | shared default HttpConnection updateSettings(Http2Settings settings) Send to the remote endpoint an update of the server settings. This is not implemented for HTTP/1.x.Parameters:
|
updateSettings | shared default HttpConnection updateSettings(Http2Settings settings, Anything(Throwable?) completionHandler) Send to the remote endpoint an update of this endpoint settings ThecompletionHandler will be notified when the remote endpoint has acknowledged the settings.
This is not implemented for HTTP/1.x.
Parameters:
|
Inherited Methods |
Methods inherited from: Object equals |