< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 8
Coverable lines: 8
Total lines: 58
Line coverage: 0%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Cyclomatic complexity NPath complexity Sequence coverage
File 1: .cctor()100%110%
File 2: .cctor()100%110%

File(s)

D:\runner\runtime\src\libraries\Common\src\System\Net\Http\HttpHandlerDefaults.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Threading;
 5using System.Security.Principal;
 6
 7namespace System.Net.Http
 8{
 9    /// <summary>
 10    /// Central repository for default values used in http handler settings.  Not all settings are relevant
 11    /// to or configurable by all handlers.
 12    /// </summary>
 13    internal static partial class HttpHandlerDefaults
 14    {
 15        public const int DefaultMaxAutomaticRedirections = 50;
 16        public const int DefaultMaxResponseDrainSize = 1024 * 1024;
 017        public static readonly TimeSpan DefaultResponseDrainTimeout = TimeSpan.FromSeconds(2);
 18        public const int DefaultMaxResponseHeadersLength = 64; // Units in K (1024) bytes.
 19        public const DecompressionMethods DefaultAutomaticDecompression = DecompressionMethods.None;
 20        public const bool DefaultAutomaticRedirection = true;
 21        public const bool DefaultUseCookies = true;
 22        public const bool DefaultPreAuthenticate = false;
 23        public const ClientCertificateOption DefaultClientCertificateOption = ClientCertificateOption.Manual;
 24        public const bool DefaultUseProxy = true;
 25        public const bool DefaultUseDefaultCredentials = false;
 26        public const bool DefaultCheckCertificateRevocationList = false;
 27        public const TokenImpersonationLevel DefaultImpersonationLevel = TokenImpersonationLevel.None;
 028        public static readonly TimeSpan DefaultPooledConnectionLifetime = Timeout.InfiniteTimeSpan;
 029        public static readonly TimeSpan DefaultPooledConnectionIdleTimeout = TimeSpan.FromMinutes(1);
 030        public static readonly TimeSpan DefaultExpect100ContinueTimeout = TimeSpan.FromSeconds(1);
 031        public static readonly TimeSpan DefaultConnectTimeout = Timeout.InfiniteTimeSpan;
 32    }
 33}

D:\runner\runtime\src\libraries\System.Net.Http\src\System\Net\Http\HttpHandlerDefaults.cs

#LineLine coverage
 1// Licensed to the .NET Foundation under one or more agreements.
 2// The .NET Foundation licenses this file to you under the MIT license.
 3
 4using System.Threading;
 5
 6namespace System.Net.Http
 7{
 8    /// <summary>
 9    /// Additional default values used used only in this assembly.
 10    /// </summary>
 11    internal static partial class HttpHandlerDefaults
 12    {
 013        public static readonly int DefaultMaxConnectionsPerServer = GlobalHttpSettings.SocketsHttpHandler.MaxConnections
 14
 015        public static readonly TimeSpan DefaultKeepAlivePingTimeout = TimeSpan.FromSeconds(20);
 016        public static readonly TimeSpan DefaultKeepAlivePingDelay = Timeout.InfiniteTimeSpan;
 17        public const HttpKeepAlivePingPolicy DefaultKeepAlivePingPolicy = HttpKeepAlivePingPolicy.Always;
 18
 19        // This is the default value for SocketsHttpHandler.InitialHttp2StreamWindowSize,
 20        // which defines the value we communicate in stream SETTINGS frames.
 21        // Should not be confused with Http2Connection.DefaultInitialWindowSize, which defines the RFC default.
 22        // Unlike that value, DefaultInitialHttp2StreamWindowSize might be changed in the future.
 23        public const int DefaultInitialHttp2StreamWindowSize = 65535;
 24    }
 25}

Methods/Properties

.cctor()
.cctor()