CoreWebView2WebResourceRequest Class

An HTTP request used with the CoreWebView2.WebResourceRequested event.

Summary

Members Description
Content Gets or sets the HTTP request message body as stream.
Headers Gets the mutable HTTP request headers.
Method Gets or sets the HTTP request method.
Uri Gets or sets the request URI.

Properties

Content

IRandomAccessStream Content

Gets or sets the HTTP request message body as stream. 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 CoreWebView2.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.

Headers

readonly CoreWebView2HttpRequestHeaders Headers

Gets the mutable HTTP request headers.

Method

string Method

Gets or sets the HTTP request method.

Uri

string Uri

Gets or sets the request URI.

Referenced by