public HttpTask(HttpConnectionManager conns, HttpRequestMessage request, bool disposeRequest, bool disposeResponse) { Connections = conns ?? throw new ArgumentNullException(nameof(conns)); Request = request ?? throw new ArgumentNullException(nameof(request)); DisposeRequest = disposeRequest; DisposeResponse = disposeResponse; }
public HttpClient() { Connections = new HttpConnectionManager(); Tasks = new HttpTaskManager(); }