interface ICoreWebView2HttpResponseHeaders
interface ICoreWebView2HttpResponseHeaders
: public IUnknown
HTTP response headers.
Summary
Members | Descriptions |
---|---|
AppendHeader | Appends header line with name and value. |
Contains | Verifies that the headers contain entries that match the header name. |
GetHeader | Gets the first header value in the collection matching the 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.
Applies to
Product | Introduced |
---|---|
WebView2 Win32 | 0.9.430 |
WebView2 Win32 Prerelease | 0.9.488 |
Members
AppendHeader
Appends header line with name and value.
public HRESULT AppendHeader(LPCWSTR name, LPCWSTR value)
Contains
Verifies that the headers contain entries that match the header name.
public HRESULT Contains(LPCWSTR name, BOOL * contains)
GetHeader
Gets the first header value in the collection matching the name.
public HRESULT GetHeader(LPCWSTR name, LPWSTR * value)
The caller must free the returned string with CoTaskMemFree
. See API Conventions.
GetHeaders
Gets the header values matching the name.
public HRESULT GetHeaders(LPCWSTR name, ICoreWebView2HttpHeadersCollectionIterator ** iterator)
GetIterator
Gets an iterator over the collection of entire response headers.
public HRESULT GetIterator(ICoreWebView2HttpHeadersCollectionIterator ** iterator)
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기