Example usage for io.vertx.core.http HttpClientRequest reset

List of usage examples for io.vertx.core.http HttpClientRequest reset

Introduction

In this page you can find the example usage for io.vertx.core.http HttpClientRequest reset.

Prototype

boolean reset(long code);

Source Link

Document

Reset this request: <p/> <ul> <li>for HTTP/2, this performs send an HTTP/2 reset frame with the specified error code </li> <li>for HTTP/1.x, this closes the connection when the current request is inflight</li> </ul> <p/> When the request has not yet been sent, the request will be aborted and false is returned as indicator.

Usage

From source file:examples.HTTP2Examples.java

License:Open Source License

public void example11(HttpClientRequest request) {

    request.reset(8);

}