WebResourceResponseReceived is raised when the OrdoWebView2 control receives the response for a request for a web resource (any URI resolution performed by the OrdoWebView2; such as HTTP/HTTPS, file and data requests from redirects, navigations, declarations in HTML, implicit Favicon lookups, and fetch API usage in the document).
Syntax
Private Sub object_WebResourceResponseReceived(ReqURI As String, ReqMethod As String, RespStatus As Long, RespReasonPhrase As String, RespHeaders As String)
The AcceleratorKeyPressed event syntax has these parts:
Element | Description |
Object | The object placeholder represents an OrdoWebView2 control |
ReqURI | String. The request URI. |
ReqMethod | String. The HTTP request method. |
RespStatus | Long. The HTTP response status code. |
RespReasonPhrase | String. The HTTP response reason phrase. |
RespHeaders | String. A JSON string containing the HTTP response headers as received. |
Remarks
The host app can use this event to view the actual
request and response for a web resource.
There is no guarantee about the
order in which the Control processes the response and the host app's handler
runs.