WebViewResourceResponse

ReferencesSince v2.14

Constructors

WebViewResourceResponse

#
public WebViewResourceResponse(Stream content, string contentType)
Initializes a new response with the specified content.

WebViewResourceResponse

#
public WebViewResourceResponse(string content, string contentType)
Initializes a new response with text content, sent as UTF-8.
content (string)Text to send.
contentType (string)MIME type of the content without a charset, e.g. text/html.

Properties

Content

#
public Stream Content { get; }
Gets the content to send. The web view reads it after the handler returns, so don't dispose it.

ContentType

#
public string ContentType { get; }
Gets the MIME type of the content, e.g. text/html; charset=utf-8.

StatusCode

#
public int StatusCode { get; set; }
Gets or sets the HTTP status code, 200 by default.