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

goAway

open fun goAway(errorCode: Long): HttpConnection

Like #goAway(long, int) with a last stream id 2^31-1.

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.

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