Ejemplo n.º 1
0
 /// <summary>
 /// Create a new HttpClient with a specified connection and parser
 /// </summary>
 public HttpClient(IConnectableStreamSource conn, IHttpResponseParser parser)
 {
     _conn   = conn;
     _parser = parser;
     Timeout = DefaultTimeout;
 }
Ejemplo n.º 2
0
 public HttpClient(IConnectableStreamSource conn, IHttpResponseParser parser)
 {
     _conn = conn;
     _parser = parser;
     Timeout = TimeSpan.FromSeconds(5);
 }
Ejemplo n.º 3
0
 public HttpClient(IConnectableStreamSource conn, IHttpResponseParser parser)
 {
     _conn   = conn;
     _parser = parser;
     Timeout = TimeSpan.FromSeconds(5);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Create a new HttpClient with a specified connection and parser
 /// </summary>
 public HttpClient(IConnectableStreamSource conn, IHttpResponseParser parser)
 {
     _conn = conn;
     _parser = parser;
     Timeout = DefaultTimeout;
 }
Ejemplo n.º 5
0
 /// <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;
 }