<PackageReference Include="System.ClientModel" Version="1.1.0-beta.7" />

PipelineRequestHeaders

public abstract class PipelineRequestHeaders : IEnumerable<KeyValuePair<string, string>>, IEnumerable
Represents the collection of HTTP headers on a PipelineRequest.
using System.Collections; using System.Collections.Generic; using System.Runtime.CompilerServices; namespace System.ClientModel.Primitives { [System.Runtime.CompilerServices.NullableContext(1)] [System.Runtime.CompilerServices.Nullable(0)] public abstract class PipelineRequestHeaders : IEnumerable<KeyValuePair<string, string>>, IEnumerable { public abstract void Add(string name, string value); public abstract void Set(string name, string value); public abstract bool Remove(string name); public abstract bool TryGetValue(string name, [System.Runtime.CompilerServices.Nullable(2)] out string value); public abstract bool TryGetValues(string name, [System.Runtime.CompilerServices.Nullable(new byte[] { 2, 1 })] out IEnumerable<string> values); [return: System.Runtime.CompilerServices.Nullable(new byte[] { 1, 0, 1, 1 })] public abstract IEnumerator<KeyValuePair<string, string>> GetEnumerator(); IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); } } }