RequestHeaders Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Headers to be sent as part of the Request.
public readonly struct RequestHeaders : System.Collections.Generic.IEnumerable<Azure.Core.HttpHeader>
type RequestHeaders = struct
interface seq<HttpHeader>
interface IEnumerable
Public Structure RequestHeaders
Implements IEnumerable(Of HttpHeader)
- Inheritance
-
RequestHeaders
- Implements
Methods
Add(HttpHeader) |
Adds the HttpHeader instance to the collection. |
Add(String, String) |
Adds the header to the collection. If a header with this name already exist adds an additional value to the header values. |
Contains(String) |
Returns |
GetEnumerator() |
Returns an enumerator that iterates through the RequestHeaders. |
Remove(String) |
Removes the header from the collection. |
SetValue(String, String) |
Sets the header value name. If a header with this name already exist replaces it's value. |
TryGetValue(String, String) |
Returns header value if the headers is stored in the collection. If the header has multiple values they are going to be joined with a comma. |
TryGetValues(String, IEnumerable<String>) |
Returns header values if the header is stored in the collection. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through the RequestHeaders. |