次の方法で共有


interface IWebView2HttpResponseHeaders

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

interface IWebView2HttpResponseHeaders
  : public IUnknown

HTTP response headers.

Summary

Members Descriptions
AppendHeader Appends header line with name and value.
Contains Checks whether the headers contain entries matching the header name.
GetHeaders Gets the header values matching the name.
GetIterator Gets an iterator over the collection of entire response headers.

Used to construct a WebResourceResponse for the WebResourceRequested event.

Members

AppendHeader

Appends header line with name and value.

public HRESULT AppendHeader(LPCWSTR name,LPCWSTR value)

Contains

Checks whether the headers contain entries matching the header name.

public HRESULT Contains(LPCWSTR name,BOOL * contains)

GetHeaders

Gets the header values matching the name.

public HRESULT GetHeaders(LPCWSTR name,IWebView2HttpHeadersCollectionIterator ** iterator)

GetIterator

Gets an iterator over the collection of entire response headers.

public HRESULT GetIterator(IWebView2HttpHeadersCollectionIterator ** iterator)