Class CoreWebView2HttpResponseHeaders
HTTP response headers.
public class CoreWebView2HttpResponseHeaders : IEnumerable<KeyValuePair<string, string>>, IEnumerable
- Inheritance
-
CoreWebView2HttpResponseHeaders
- Implements
- Inherited Members
Remarks
Used to construct a CoreWebView2WebResourceResponse for the WebResourceRequested event.
Methods
AppendHeader(string, string)
Appends header line with name and value.
public void AppendHeader(string name, string value)
Parameters
Contains(string)
Checks whether this CoreWebView2HttpResponseHeaders contain entries matching the header name.
public bool Contains(string name)
Parameters
name
stringThe name of the header to seek.
Returns
GetEnumerator()
Returns an enumerator that iterates through the CoreWebView2HttpRequestHeaders or CoreWebView2HttpResponseHeaders collection.
public CoreWebView2HttpHeadersCollectionIterator GetEnumerator()
Returns
GetHeader(string)
Gets the first header value in the collection matching the name.
public string GetHeader(string name)
Parameters
name
stringThe header name.
Returns
- string
The first header value in the collection matching the name.
GetHeaders(string)
Gets the header values matching the name.
public CoreWebView2HttpHeadersCollectionIterator GetHeaders(string name)
Parameters
name
stringThe header name.
Returns
GetIterator()
Gets a CoreWebView2HttpHeadersCollectionIterator over the collection of entire CoreWebView2HttpResponseHeaders.
public CoreWebView2HttpHeadersCollectionIterator GetIterator()