// Static constructor. Setup default values
        static HTTPManager()
        {
            MaxConnectionPerServer = 4;
            KeepAliveDefaultValue = true;
            MaxPathLength = 255;
            MaxConnectionIdleTime = TimeSpan.FromSeconds(30);
            IsCookiesEnabled = true;
            CookieJarSize = 10 * 1024 * 1024;
            EnablePrivateBrowsing = false;
            ConnectTimeout = TimeSpan.FromSeconds(20);
            RequestTimeout = TimeSpan.FromSeconds(60);

            // Set the default logger mechanism
            logger = new BestHTTP.Logger.DefaultLogger();

            DefaultCertificateVerifyer = null;
            UseAlternateSSLDefaultValue = false;
        }
Exemple #2
0
        // Static constructor. Setup default values
        static HTTPManager()
        {
            MaxConnectionPerServer = 4;
            KeepAliveDefaultValue  = true;
            MaxPathLength          = 255;
            MaxConnectionIdleTime  = TimeSpan.FromSeconds(20);

#if !BESTHTTP_DISABLE_COOKIES && (!UNITY_WEBGL || UNITY_EDITOR)
            IsCookiesEnabled = true;
#endif

            CookieJarSize         = 10 * 1024 * 1024;
            EnablePrivateBrowsing = false;
            ConnectTimeout        = TimeSpan.FromSeconds(20);
            RequestTimeout        = TimeSpan.FromSeconds(60);

            // Set the default logger mechanism
            logger = new BestHTTP.Logger.DefaultLogger();

#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
            DefaultCertificateVerifyer  = null;
            UseAlternateSSLDefaultValue = true;
#endif
        }