DayZ 1.24
|
Private Member Functions | |
void | RestContext () |
void | ~RestContext () |
proto native int | GET (RestCallback cb, string request) |
Processes GET request and returns result (ERestResultState) and/ or data (timeout, error) when finished. | |
proto native string | GET_now (string request) |
Processes GET request and returns data immediately (thread blocking operation!) | |
proto native int | FILE (RestCallback cb, string request, string filename) |
Processes GET request and returns result (ERestResultState) and/ or stores data int specified file (timeout, error) when finished. | |
proto native int | FILE_now (string request, string filename) |
Processes GET request and returns result (ERestResultState) and/ stores data int specified file immediately (thread blocking operation!) | |
proto native int | POST (RestCallback cb, string request, string data) |
Pushes POST request and returns result (ERestResultState) and/ or data (timeout, error) when finished. | |
proto native string | POST_now (string request, string data) |
Processes POST request and returns data immediately (thread blocking operation!) | |
proto native void | reset () |
Clear all pending requests and buffers. | |
proto native void | SetHeader (string value) |
Set Content-Type header (string) | |
Processes GET request and returns result (ERestResultState) and/ or stores data int specified file (timeout, error) when finished.
Processes GET request and returns result (ERestResultState) and/ stores data int specified file immediately (thread blocking operation!)
|
private |
Processes GET request and returns result (ERestResultState) and/ or data (timeout, error) when finished.
Processes GET request and returns data immediately (thread blocking operation!)
Pushes POST request and returns result (ERestResultState) and/ or data (timeout, error) when finished.
Processes POST request and returns data immediately (thread blocking operation!)
Set Content-Type header (string)
default content type is "application/octet-stream" but you can specify whatever you like, for example "application/json" "application/sql" "text/plain"