Component Networking
(NOTE) A component we can use to facilitate web requests.
| Methods | Properties | Base Classes | Derived Classes |
|---|---|---|---|
| Clear | Url | component | |
| Run | |||
| SetHeader | |||
| SetPostData | |||
| Constructor |
Properties
Url : string
Get and set the url that we make requests to.
var Url : String
Methods
Clear : Void
Clear headers and post data. |Name|Type|Description| |---|---|---|
function Clear()
Run : Void
Run the web request (we should get data back in a WebResponse event). |Name|Type|Description| |---|---|---|
function Run()
SetHeader : Void
Add a header to the web request . |Name|Type|Description| |---|---|---| |name|string| | |data|string| |
function SetHeader(name : String, data : String)
SetPostData : Void
Add Post data to the request, this will also change the request to a post request. |Name|Type|Description| |---|---|---| |data|string| |
function SetPostData(data : String)
WebRequester : Void
constructor
Name Type Description function WebRequester()