class Defaults {

    public static <T> BiFunction<HttpRequestBase, HttpResponse, T> asNull() {
        return (request, response) -> {
            EntityUtils.consumeQuietly(response.getEntity());
            request.releaseConnection();
            return null;
        };
    }

    private  Defaults();

}