Open pconway11 opened 8 years ago
It would be useful to have a closed check on http requests .
This is available on responses but not on requests
io.vertx.core.http.HttpServerResponse provides boolean closed();
but io.vertx.core.http.HttpClientRequest does not provide the check
in the implementation of the request there is a check complete method which throws an exception if you try and end an already complete request
protected void checkComplete() { if(this.completed) { throw new IllegalStateException("Request already complete"); } }
It would be nice to expose access to this boolean to avoid these exceptions
@pconway11 there is now HttpClientRequest.connection(), how about adding closed() boolean here ?
HttpClientRequest.connection()
closed()
It would be useful to have a closed check on http requests .
This is available on responses but not on requests
io.vertx.core.http.HttpServerResponse provides boolean closed();
but io.vertx.core.http.HttpClientRequest does not provide the check
in the implementation of the request there is a check complete method which throws an exception if you try and end an already complete request
protected void checkComplete() { if(this.completed) { throw new IllegalStateException("Request already complete"); } }
It would be nice to expose access to this boolean to avoid these exceptions