// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. package com.yahoo.jdisc.http.client; import com.ning.http.client.AsyncHttpClient; import com.yahoo.jdisc.Metric; import com.yahoo.jdisc.Request; import com.yahoo.jdisc.handler.ContentChannel; import com.yahoo.jdisc.handler.ResponseHandler; import com.yahoo.jdisc.http.HttpRequest; /** * @author Simon Thoresen Hult */ final class EmptyRequest { private EmptyRequest() { // hide } public static ContentChannel executeRequest(AsyncHttpClient ningClient, Request request, HttpRequest.Method method, ResponseHandler handler, Metric metric, Metric.Context ctx) { return new EmptyRequestContent(ningClient, request, method, new AsyncResponseHandler(request, handler, metric, ctx)); } }