Share via


PipelineRequestHeaders Class

Definition

Represents the collection of HTTP headers on a PipelineRequest.

public abstract class PipelineRequestHeaders : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>>
type PipelineRequestHeaders = class
    interface seq<KeyValuePair<string, string>>
    interface IEnumerable
Public MustInherit Class PipelineRequestHeaders
Implements IEnumerable(Of KeyValuePair(Of String, String))
Inheritance
PipelineRequestHeaders
Implements

Constructors

PipelineRequestHeaders()

Methods

Add(String, String)

Adds the specified header and its value to the request's header collection. If a header with this name is already present in the collection, the value will be added to the comma-separated list of values associated with the header.

GetEnumerator()

Returns an enumerator that iterates through the collection.

Remove(String)

Removes the specified header from the request's header collection.

Set(String, String)

Sets the specified header and its value in the request's header collection. If a header with this name is already present in the collection, the header's value will be replaced with the specified value.

TryGetValue(String, String)

Attempts to retrieve the value associated with the specified header name.

TryGetValues(String, IEnumerable<String>)

Attempts to retrieve the values associated with the specified header name.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Returns an enumerator that iterates through a collection.

Applies to