class Defaults {

    public static BiFunction<HttpRequestBase, HttpResponse, InputStream> emptyStream() {
        return (request, response) -> {
            request.releaseConnection();
            EntityUtils.consumeQuietly(response.getEntity());
            return new ByteArrayInputStream(new byte[0]);
        };
    }

    private  Defaults();

}