Table of Contents

Class CoreWebView2HttpResponseHeaders

Namespace
Microsoft.Web.WebView2.Core
Assembly
Microsoft.Web.WebView2.Core.dll

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

name string

The header name to be appended.

value string

The header value to be appended.

Contains(string)

Checks whether this CoreWebView2HttpResponseHeaders contain entries matching the header name.

public bool Contains(string name)

Parameters

name string

The name of the header to seek.

Returns

bool

GetEnumerator()

Returns an enumerator that iterates through the CoreWebView2HttpRequestHeaders or CoreWebView2HttpResponseHeaders collection.

public CoreWebView2HttpHeadersCollectionIterator GetEnumerator()

Returns

CoreWebView2HttpHeadersCollectionIterator

GetHeader(string)

Gets the first header value in the collection matching the name.

public string GetHeader(string name)

Parameters

name string

The 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 string

The header name.

Returns

CoreWebView2HttpHeadersCollectionIterator

GetIterator()

public CoreWebView2HttpHeadersCollectionIterator GetIterator()

Returns

CoreWebView2HttpHeadersCollectionIterator