Asynchronous web request class using HTTP Web Request. More...
Public Member Functions | |
| delegate void | OnCompleteCallback (ksWebResponse response) |
| Callback for completed web requests. More... | |
| ksWebRequest (string url, WebHeaderCollection headers=null, string method="GET", ksJSON jsonRequest=null, ksWebResponse.Handler onComplete=null, object stateObject=null) | |
| Constructor specific requests. More... | |
| ksWebRequest (string url, FileInfo[] files, ksJSON jsonRequest, ksWebResponse.Handler onComplete=null) | |
| Sends a request and upload files. More... | |
Properties | |
| string | Method [get] |
| Method. More... | |
| string | URL [get] |
| URL. More... | |
| ksJSON | JSON [get] |
| JSON data. More... | |
| WebHeaderCollection? | Headers [get] |
| Headers. More... | |
| bool | IsDone [get] |
| Checks if the request has completed. More... | |
| ksWebResponse | Response [get] |
| Response. More... | |
Properties inherited from KS.Reactor.ksIWebRequest | |
| string | Method [get] |
| Method. More... | |
| string | URL [get] |
| URL. More... | |
| ksJSON | JSON [get] |
| JSON request data. More... | |
| WebHeaderCollection | Headers [get] |
| Headers. More... | |
| bool | IsDone [get] |
| Check if the request has completed. More... | |
| ksWebResponse | Response [get] |
| Response. More... | |
Asynchronous web request class using HTTP Web Request.
| KS.Reactor.ksWebRequest.ksWebRequest | ( | string | url, |
| WebHeaderCollection | headers = null, |
||
| string | method = "GET", |
||
| ksJSON | jsonRequest = null, |
||
| ksWebResponse.Handler | onComplete = null, |
||
| object | stateObject = null |
||
| ) |
Constructor specific requests.
| url | URL. |
| headers | Request string. |
| method | Request method. |
| jsonRequest | JSON request. |
| onComplete | Optional completion handler. |
| stateObject | User defined state tracking object. |
| KS.Reactor.ksWebRequest.ksWebRequest | ( | string | url, |
| FileInfo[] | files, | ||
| ksJSON | jsonRequest, | ||
| ksWebResponse.Handler | onComplete = null |
||
| ) |
Sends a request and upload files.
| url | URL |
| files | List of files to upload. |
| jsonRequest | JSON request data. |
| onComplete | Optional completion handler. |
| delegate void KS.Reactor.ksWebRequest.OnCompleteCallback | ( | ksWebResponse | response | ) |
Callback for completed web requests.
| response | Completed web request. |
|
get |
Headers.
|
get |
Checks if the request has completed.
|
get |
JSON data.
|
get |
Method.
|
get |
Response.
|
get |
URL.