@Override
    public boolean isCancelled() {
        return cancellableRef.isMarked();
    }
Constructs a new instance with the given method and request URI.

@param method request method.
@param requestUri request URI.
httpclient5/src/main/java/org/apache/hc/client5/http/classic/methods/HttpUriRequestBase.java