< Summary

Information
Class: System.Net.Http.HttpRequestOptionsKey<T>
Assembly: System.Net.Http
File(s): D:\runner\runtime\src\libraries\System.Net.Http\src\System\Net\Http\HttpRequestOptionsKey.cs
Line coverage
0%
Covered lines: 0
Uncovered lines: 4
Coverable lines: 4
Total lines: 28
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
.ctor(...)100%110%

File(s)

D:\runner\runtime\src\libraries\System.Net.Http\src\System\Net\Http\HttpRequestOptionsKey.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;
 5
 6namespace System.Net.Http
 7{
 8    /// <summary>
 9    /// Represents a key in the options for an HTTP request.
 10    /// </summary>
 11    /// <typeparam name="TValue">The type of the value of the option.</typeparam>
 12    public readonly struct HttpRequestOptionsKey<TValue>
 13    {
 14        /// <summary>
 15        /// Gets the name of the option.
 16        /// </summary>
 017        public string Key { get; }
 18
 19        /// <summary>
 20        /// Initializes a new instance of the HttpRequestOptionsKey using the supplied key name.
 21        /// </summary>
 22        /// <param name="key">Name of the HTTP request option.</param>
 23        public HttpRequestOptionsKey(string key)
 024        {
 025            Key = key;
 026        }
 27    }
 28}

Methods/Properties

Key()
.ctor(System.String)