Close the connection and all the currently active streams.
An HTTP/2 connection will send a frame before.Close the connection and all the currently active streams.
An HTTP/2 connection will send a frame before.Set a close handler. The handler will get notified when the connection is closed.
Set an handler called when a connection error happens
Like {@link HttpConnection#goAway} with a last stream id -1
which means to disallow any new stream creation.
Like {@link HttpConnection#goAway} with no buffer.
Send a go away frame to the remote endpoint of the connection.
errorCode
and debugData
lastStreamId
will be closed0
when all the remaining streams are closed this connection will be closed automaticallySet an handler called when a frame is received.
This is not implemented for HTTP/1.x.Returns the SNI server name presented during the SSL handshake by the client.
Like {@link HttpConnection#localAddress} ()} but returns the server local address when real
is true
Send a frame to the remote endpoint.
This is not implemented for HTTP/1.x.Send a frame to the remote endpoint.
This is not implemented for HTTP/1.x.Set an handler notified when a frame is received from the remote endpoint.
This is not implemented for HTTP/1.x.Like {@link HttpConnection#remoteAddress} but returns the proxy remote address when real
is true
Set an handler that is called when remote endpoint Http2Settings are updated.
This is not implemented for HTTP/1.x.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.Initiate a graceful connection shutdown, the connection is taken out of service and closed when all current requests are processed, otherwise after 30 seconds the connection will be closed. Client connection are immediately removed from the pool.
Initiate a graceful connection shutdown, the connection is taken out of service and closed when all current requests are processed, otherwise after 30 seconds the connection will be closed. Client connection are immediately removed from the pool.
Like {@link HttpConnection#shutdown} but with a specific timeout
in milliseconds.
Like {@link HttpConnection#shutdown} but with a specific timeout
in milliseconds.
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.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.
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.
Generated using TypeDoc
Represents an HTTP connection.
HTTP/1.x connection provides an limited implementation, the following methods are implemented: