Skip to content

Commit cdbde39

Browse files
committed
Update WebResourceResponseReceived.md
1 parent 8c05f60 commit cdbde39

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

specs/WebResourceResponseReceived.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ This event is raised when the WebView receives the response for a request for a
1818
web resource. It provides access to both the response as it was received and the
1919
request as it was committed, including modifications made by the network stack
2020
(such as the adding of HTTP Authorization headers). The app can use this event
21-
to view the actual request and response for a web resource, but modifications
22-
made to these objects are ignored.
21+
to view the actual request and response for a web resource. Modifications to
22+
these objects are set but have no effect on WebView processing them.
2323

2424
When the event is raised, the WebView will pass a
2525
`WebResourceResponseReceivedEventArgs`, which lets the app view the request and
@@ -83,8 +83,8 @@ m_webview->add_WebResourceResponseReceived(
8383
```c#
8484
WebView.WebResourceResponseReceived += WebView_WebResourceResponseReceived;
8585
86-
// Note: modifications made to request and response are ignored
87-
private async void WebView_WebResourceResponseReceived(object sender, CoreWebView2WebResourceResponseReceivedEventArgs e)
86+
// Note: modifications made to request and response are set but have no effect on WebView processing the objects.
87+
private async void WebView_WebResourceResponseReceived(CoreWebView2 sender, CoreWebView2WebResourceResponseReceivedEventArgs e)
8888
{
8989
// Actual headers sent with request
9090
foreach (var current in e.Request.Headers)
@@ -138,9 +138,9 @@ library WebView2
138138
/// WebResourceResponseReceived event is raised after the WebView has received
139139
/// and processed the response for a WebResource request. The event args
140140
/// include the WebResourceRequest as committed and the WebResourceResponse
141-
/// received, including any additional headers added by the network stack that
142-
/// were not be included as part of the associated WebResourceRequested event,
143-
/// such as Authentication headers.
141+
/// received, not including the Content, but including any additional headers
142+
/// added by the network stack that were not be included as part of the
143+
/// associated WebResourceRequested event, such as Authentication headers.
144144
HRESULT add_WebResourceResponseReceived(
145145
[in] ICoreWebView2WebResourceResponseReceivedEventHandler* eventHandler,
146146
[out] EventRegistrationToken* token);
@@ -155,7 +155,7 @@ library WebView2
155155
/// This includes any request or response modifications made by the network stack (such as
156156
/// the adding of Authorization headers) after the WebResourceRequested event for
157157
/// the associated request has been raised. Modifications made to the request or
158-
/// response objects are ignored.
158+
/// response objects are set but have no effect on WebView processing them.
159159
interface ICoreWebView2WebResourceResponseReceivedEventHandler : IUnknown
160160
{
161161
/// Called to provide the implementer with the event args for the

0 commit comments

Comments
 (0)