Table of Contents

Class CoreWebView2WebResourceRequest

Namespace
Microsoft.Web.WebView2.Core
Assembly
Microsoft.Web.WebView2.Core.dll

An HTTP request used with the WebResourceRequested event.

public class CoreWebView2WebResourceRequest
Inheritance
CoreWebView2WebResourceRequest
Inherited Members

Properties

Content

Gets or sets the HTTP request message body as stream.

public Stream Content { get; set; }

Property Value

Stream

Remarks

POST data should be here. If a stream is set, which overrides the message body, the stream must have all the content data available by the time the WebResourceRequested event deferral of this request is completed. Stream should be agile or be created from a background STA to prevent performance impact to the UI thread. null means no content data.

See Also

Headers

Gets the mutable HTTP request headers.

public CoreWebView2HttpRequestHeaders Headers { get; }

Property Value

CoreWebView2HttpRequestHeaders

Method

Gets or sets the HTTP request method.

public string Method { get; set; }

Property Value

string

Uri

Gets or sets the request URI.

public string Uri { get; set; }

Property Value

string