Skip to content

Latest commit

 

History

History
65 lines (41 loc) · 2.09 KB

icorewebview2httpresponseheaders.md

File metadata and controls

65 lines (41 loc) · 2.09 KB
description title author ms.author ms.date ms.topic keywords
HTTP response headers.
WebView2 Win32 C++ ICoreWebView2HttpResponseHeaders
MSEdgeTeam
msedgedevrel
01/29/2021
reference
IWebView2, IWebView2WebView, webview2, webview, win32 apps, win32, edge, ICoreWebView2, ICoreWebView2Controller, browser control, edge html, ICoreWebView2HttpResponseHeaders

interface ICoreWebView2HttpResponseHeaders

[!INCLUDE deprecation-note]

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.

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)

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)