/// <summary> /// Create a new HttpClient with a specified connection and parser /// </summary> public HttpClient(IConnectableStreamSource conn, IHttpResponseParser parser) { _conn = conn; _parser = parser; Timeout = DefaultTimeout; }
public HttpClient(IConnectableStreamSource conn, IHttpResponseParser parser) { _conn = conn; _parser = parser; Timeout = TimeSpan.FromSeconds(5); }
/// <summary> /// Create a new HttpClient with a specified connection and parser /// </summary> public HttpClient(IConnectableStreamSource conn, IHttpResponseParser parser) { _conn = conn ?? throw new ArgumentNullException(nameof(conn)); _parser = parser ?? throw new ArgumentNullException(nameof(parser)); Timeout = DefaultTimeout; }