DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс RestContext

Закрытые члены

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)
 

Подробное описание

Конструктор(ы)

◆ RestContext()

void RestContext ( )
inlineprivate
97{}

◆ ~RestContext()

void ~RestContext ( )
inlineprivate
98{}

Методы

◆ FILE()

proto native int 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 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 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 GET_now ( string request)
private

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

◆ POST()

proto native int 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 POST_now ( string request,
string data )
private

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

◆ reset()

proto native void reset ( )
private

Clear all pending requests and buffers.

◆ SetHeader()

proto native void 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"


Объявления и описания членов класса находятся в файле: