Skip to content

WebResourceResponseSet - cWebView2Browser

Can be used inside OnWebResourceRequested to set additional header values for the response.

Type: Procedure

Parameters

Parameter Type Description
iStatusCode Integer HTTP Status Code
sStatustext String HTTP Status Text
sContenttype String Content type
ucOptContent UChar[] (optional) Response body data

Syntax

Procedure WebResourceResponseSet Integer iStatusCode String sStatustext String sContenttype UChar[] ucOptContent

Call Example

Send WebResourceResponseSet iStatusCode sStatustext sContenttype ucOptContent

Description

This procedure can be used inside OnWebResourceRequested to override the response for the requested resource.

Note that WebResourceResponseSetHeader can be used to set additional header values for the response.