# WebViewResourceResponse class

Namespace: [Eto.Forms](https://eto.picoe.ca/api/namespace/eto.forms.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md) · Since v2.14

```cs
public class WebViewResourceResponse
```

Content to return to the [WebView](https://eto.picoe.ca/api/type/eto.forms.webview.md) from a handler added with [WebView.AddResourceHandler(string, Func<WebViewResourceRequest, WebViewResourceResponse>)](https://eto.picoe.ca/api/type/eto.forms.webview/addresourcehandler.md).

## Constructors

- [WebViewResourceResponse](https://eto.picoe.ca/api/type/eto.forms.webviewresourceresponse/ctor.md): (2 overloads) Initializes a new response with the specified content.

## Properties

- [Content](https://eto.picoe.ca/api/type/eto.forms.webviewresourceresponse/content.md): Gets the content to send. The web view reads it after the handler returns, so don't dispose it.
- [ContentType](https://eto.picoe.ca/api/type/eto.forms.webviewresourceresponse/contenttype.md): Gets the MIME type of the content, e.g. text/html; charset=utf-8.
- [Headers](https://eto.picoe.ca/api/type/eto.forms.webviewresourceresponse/headers.md): Gets extra HTTP headers to send, e.g. Cache-Control.
- [StatusCode](https://eto.picoe.ca/api/type/eto.forms.webviewresourceresponse/statuscode.md): Gets or sets the HTTP status code, 200 by default.
