CoreWebView2WebResourceResponse Class
An HTTP response used with the CoreWebView2.WebResourceRequested event.
Summary
Members | Description |
---|---|
Content | Gets HTTP response content as stream. |
Headers | Gets the overridden HTTP response headers. |
ReasonPhrase | Gets or sets the HTTP response reason phrase. |
StatusCode | Gets or sets the HTTP response status code. |
Properties
Content
IRandomAccessStream Content
Gets HTTP response content as stream.
Stream must have all the content data available by the time the CoreWebView2.WebResourceRequested event deferral of this response is completed. Stream should be agile or be created from a background thread to prevent performance impact to the UI thread. null
means no content data.
Headers
readonly CoreWebView2HttpResponseHeaders Headers
Gets the overridden HTTP response headers.
ReasonPhrase
string ReasonPhrase
Gets or sets the HTTP response reason phrase.
StatusCode
int StatusCode
Gets or sets the HTTP response status code.