次の方法で共有


CoreWebView2Environment.CreateWebResourceRequest Method

Definition

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.

Applies to

See also