CoreWebView2HttpRequestHeaders Class
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.
HTTP request headers.
public class CoreWebView2HttpRequestHeaders : System.Collections.IEnumerable
public class CoreWebView2HttpRequestHeaders : System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,string>>
type CoreWebView2HttpRequestHeaders = class
interface IEnumerable
type CoreWebView2HttpRequestHeaders = class
interface seq<KeyValuePair<string, string>>
interface IEnumerable
Public Class CoreWebView2HttpRequestHeaders
Implements IEnumerable
Public Class CoreWebView2HttpRequestHeaders
Implements IEnumerable(Of KeyValuePair(Of String, String))
- Inheritance
-
CoreWebView2HttpRequestHeaders
- Implements
Remarks
Used to inspect the HTTP request on WebResourceRequested event and NavigationStarting event. It is possible to modify the HTTP request headers from a WebResourceRequested event, but not from a NavigationStarting event.
Methods
Contains(String) |
Checks whether the headers contain an entry that matches the header name. |
GetEnumerator() |
Returns an enumerator that iterates through the CoreWebView2HttpRequestHeaders or CoreWebView2HttpResponseHeaders collection. |
GetHeader(String) |
Gets the header value matching the name. |
GetHeaders(String) |
Gets the header value matching the name using a CoreWebView2HttpHeadersCollectionIterator. The header value matching the name. |
GetIterator() |
Gets a CoreWebView2HttpHeadersCollectionIterator over the collection of request headers. |
RemoveHeader(String) |
Removes header that matches the name. |
SetHeader(String, String) |
Adds or updates header that matches the name. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() | Returns an enumerator that iterates through a collection. |
IEnumerable<KeyValuePair<String,String>>.GetEnumerator() | Returns an enumerator that iterates through the collection. |