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.
errorCode and debugDatalastStreamId will be closed0 when all the remaining streams are closed this connection will be closed automatically
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