CoreWebView2Environment.CreateWebResourceRequest Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a new CoreWebView2WebResourceRequest object.
public Microsoft.Web.WebView2.Core.CoreWebView2WebResourceRequest CreateWebResourceRequest (string uri, string Method, System.IO.Stream postData, string Headers);
member this.CreateWebResourceRequest : string * string * System.IO.Stream * string -> Microsoft.Web.WebView2.Core.CoreWebView2WebResourceRequest
Public Function CreateWebResourceRequest (uri As String, Method As String, postData As Stream, Headers As String) As CoreWebView2WebResourceRequest
Parameters
- uri
- String
The request URI.
- Method
- String
The HTTP request method.
- postData
- Stream
- Headers
- String
The raw request header string delimited by CRLF (optional in last header).
Returns
Remarks
uri
parameter must be absolute URI. It's also possible to create this object with null
headers string and then use the CoreWebView2HttpRequestHeaders to construct the headers line by line.