Beispiel #1
0
 /// <exception cref="System.IO.IOException"/>
 public HttpURLConnection Configure(HttpURLConnection conn)
 {
     if (conn is HttpsURLConnection)
     {
         HttpsURLConnection c = (HttpsURLConnection)conn;
         c.SetSSLSocketFactory(sf);
         c.SetHostnameVerifier(hv);
     }
     TimelineClientImpl.SetTimeouts(conn, timeout);
     return(conn);
 }
Beispiel #2
0
 /// <exception cref="System.IO.IOException"/>
 public HttpURLConnection Configure(HttpURLConnection conn)
 {
     TimelineClientImpl.SetTimeouts(conn, TimelineClientImpl.DefaultSocketTimeout);
     return(conn);
 }