vertx / io.vertx.core.http / HttpConnection / goAway

# goAway

`open fun goAway(errorCode: Long): HttpConnection`

Like `#goAway(long, int)` with a last stream id `-1` which means to disallow any new stream creation.

`open fun goAway(errorCode: Long, lastStreamId: Int): HttpConnection`

Like `#goAway(long, int, Buffer)` with no buffer.

`abstract fun goAway(errorCode: Long, lastStreamId: Int, debugData: Buffer): HttpConnection`

Send a go away frame to the remote endpoint of the connection.

- a GOAWAY frame is sent to the to the remote endpoint with the `errorCode` and `debugData`
- any stream created after the stream identified by `lastStreamId` will be closed
- for an errorCode is different than `0` when all the remaining streams are closed this connection will be closed automatically

This is not implemented for HTTP/1.x.

### Parameters

`errorCode` - the GOAWAY error code

`lastStreamId` - the last stream id

`debugData` - additional debug data sent to the remote endpoint

Return
a reference to this, so the API can be used fluently