ICoreWebView2Environment2.CreateWebResourceRequest

Create a new web resource request object. URI parameter must be absolute URI. The headers string is the raw request header string delimited by CRLF (optional in last header). It's also possible to create this object with null headers string and then use the ICoreWebView2HttpRequestHeaders to construct the headers line by line. For information on other parameters see ICoreWebView2WebResourceRequest.

\snippet ScenarioNavigateWithWebResourceRequest.cpp NavigateWithWebResourceRequest

interface ICoreWebView2Environment2
HRESULT
CreateWebResourceRequest
(
in LPCWSTR uri
,
in LPCWSTR method
,
in IStream* postData
,
in LPCWSTR headers
,)

Meta