vertx / io.vertx.reactivex.core.http / HttpClientRequest / reset

# reset

`open fun reset(): Boolean`

Reset this stream with the error code `0`.

Return

`open fun reset(code: Long): Boolean`

Reset this request:

- for HTTP/2, this performs send an HTTP/2 reset frame with the specified error `code`
- for HTTP/1.x, this closes the connection after the current in-flight requests are ended

When the request has not yet been sent, the request will be aborted and false is returned as indicator.

### Parameters

`code` - the error code

Return
true when reset has been performed