@Override
    public void cancel() {
        // TODO: we should consider disconnecting the url connection here, but we can't do so directly because cancel is
        // often called on the main thread.
        isCancelled = true;
    }
A DataFetcher that retrieves an {@link InputStream} for a Url.
core/src/main/java/com/bumptech/glide/load/data/HttpUrlFetcher.java