DayZ 1.24
Loading...
Searching...
No Matches
RestContext Class Reference

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)
 

Detailed Description

Definition at line 94 of file RestApi.c.

Constructor & Destructor Documentation

◆ RestContext()

void RestContext::RestContext ( )
inlineprivate

Definition at line 96 of file RestApi.c.

96{}

◆ ~RestContext()

void RestContext::~RestContext ( )
inlineprivate

Definition at line 97 of file RestApi.c.

97{}

Member Function Documentation

◆ FILE()

proto native int RestContext::FILE ( RestCallback cb,
string request,
string filename )
private

Processes GET request and returns result (ERestResultState) and/ or stores data int specified file (timeout, error) when finished.

◆ FILE_now()

proto native int RestContext::FILE_now ( string request,
string filename )
private

Processes GET request and returns result (ERestResultState) and/ stores data int specified file immediately (thread blocking operation!)

◆ GET()

proto native int RestContext::GET ( RestCallback cb,
string request )
private

Processes GET request and returns result (ERestResultState) and/ or data (timeout, error) when finished.

◆ GET_now()

proto native string RestContext::GET_now ( string request)
private

Processes GET request and returns data immediately (thread blocking operation!)

◆ POST()

proto native int RestContext::POST ( RestCallback cb,
string request,
string data )
private

Pushes POST request and returns result (ERestResultState) and/ or data (timeout, error) when finished.

◆ POST_now()

proto native string RestContext::POST_now ( string request,
string data )
private

Processes POST request and returns data immediately (thread blocking operation!)

◆ reset()

proto native void RestContext::reset ( )
private

Clear all pending requests and buffers.

◆ SetHeader()

proto native void RestContext::SetHeader ( string value)
private

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"


The documentation for this class was generated from the following file: