Class RequestInterceptor

Definition

Namespace:
Tizen.WebView
Assembly:
Tizen.WebView.dll
API Level:
8

This class provides methods and properties to handle a interpected request.

C#
Copy
public class RequestInterceptor : object
Inheritance
RequestInterceptor

Properties

View Source

Url

The URL of the request.

Declaration
C#
Copy
public Uri Url { get; }
Property Value
Type Description
Uri
API Level: 8

Methods

View Source

Ignore()

Ignores the request, so WebView will load it.

Declaration
C#
Copy
public void Ignore()
API Level: 8
View Source

SetResponse(String, String, Int32, String, IDictionary<String, String>, Stream)

Sets headers and data for the response.

Declaration
C#
Copy
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.

Int32 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.

API Level: 8

Extension Methods