Class RequestInterceptor
Definition
- Assembly:
- Tizen.WebView.dll
This class provides methods and properties to handle a interpected request.
public class RequestInterceptor
- Inheritance
-
objectRequestInterceptor
Properties
View SourceUrl
The URL of the request.
Declaration
public Uri Url { get; }
Property Value
Type | Description |
---|---|
Uri |
Methods
View SourceIgnore()
Ignores the request, so WebView will load it.
Declaration
public void Ignore()
SetResponse(string, string, int, string, IDictionary<string, string>, Stream)
Sets headers and data for the response.
Declaration
public void SetResponse(string mimeType, string encoding, int statusCode, string reasonPhrase, IDictionary<string, string> responseHeaders, Stream data)
Parameters
Type | Name | Description |
---|---|---|
string | mimeType | Response's mime type. |
string | encoding | Response's character encoding. |
int | statusCode | HTTP response status code. |
string | reasonPhrase | HTTP response reason phrase. |
IDictionary<, ><string, string> | responseHeaders | Headers Map from HTTP header field names to field values. |
Stream | data | The streiam that provides the response's data. |