DotNetBrowser  1.14
Public Member Functions | Properties | List of all members
DotNetBrowser.DataReceivedParams Class Reference

Represents parameters that are passed to the NetworkDelegate.onDataReceived(DataReceivedParams) method. More...

Inherits DotNetBrowser.RequestParams.

Public Member Functions

 DataReceivedParams (long requestId, string url, string method, string charset, string mimeType, byte[] data)
 Constructs a new DataReceivedParams instance with specified parameters. More...
 
- Public Member Functions inherited from DotNetBrowser.RequestParams
 RequestParams (long requestId, string url, string method)
 Constructs a new RequestParams instance with specified parameters. More...
 

Properties

byte[] Data [get]
 Returns the received part of HTTP response body. More...
 
string MimeType [get]
 Returns the mime type in lower case from the headers. If there's no mime type, returns empty string. More...
 
string Charset [get]
 Returns the charset in lower case from the headers. If there's no charset, returns empty string. More...
 
- Properties inherited from DotNetBrowser.RequestParams
string Url [get, protected set]
 Gets the current request URL. More...
 
long RequestId [get]
 Gets a globally unique identifier for this request. More...
 
string Method [get]
 Gets the current request method ("GET", "POST" etc.). More...
 

Detailed Description

Represents parameters that are passed to the NetworkDelegate.onDataReceived(DataReceivedParams) method.

Constructor & Destructor Documentation

DotNetBrowser.DataReceivedParams.DataReceivedParams ( long  requestId,
string  url,
string  method,
string  charset,
string  mimeType,
byte[]  data 
)

Constructs a new DataReceivedParams instance with specified parameters.

Parameters
requestIdA globally unique identifier for this request.
urlThe current request URL.
methodThe current request method ("GET", "POST" etc.).
charsetcharset in lower case from the headers
mimeTypemime type in lower case from the headers.
datareceived part of HTTP response body.

Property Documentation

string DotNetBrowser.DataReceivedParams.Charset
get

Returns the charset in lower case from the headers. If there's no charset, returns empty string.

byte [] DotNetBrowser.DataReceivedParams.Data
get

Returns the received part of HTTP response body.

string DotNetBrowser.DataReceivedParams.MimeType
get

Returns the mime type in lower case from the headers. If there's no mime type, returns empty string.