Sinespace Client  2023.2.17543
Client-side scripting for Sinespace
SineSpace.Scripting.Network.SWebService Class Reference

Public Member Functions

 SWebService (SScript sScript)
 
void Get (string url, Action< SWebResponse > onComplete, Table headers=null, float timeout=0)
 
void Get (string url, Closure onComplete, Table headers=null, float timeout=0)
 
Dictionary< string, string > ParseValidHeaders (Table headers)
 
void Post (string url, string data, Action< SWebResponse > onComplete, Table headers=null, float timeout=0)
 
void Post (string url, string data, Closure onComplete, Table headers=null, float timeout=0)
 
SResource GetImage (string url, Action< SWebResponse > onComplete=null, Table headers=null, float timeout=0)
 
SResource GetImage (string url, Closure onComplete=null, Table header=null, float timeout=0)
 

Constructor & Destructor Documentation

◆ SWebService()

SineSpace.Scripting.Network.SWebService.SWebService ( SScript  sScript)

Member Function Documentation

◆ Get() [1/2]

void SineSpace.Scripting.Network.SWebService.Get ( string  url,
Action< SWebResponse onComplete,
Table  headers = null,
float  timeout = 0 
)

◆ Get() [2/2]

void SineSpace.Scripting.Network.SWebService.Get ( string  url,
Closure  onComplete,
Table  headers = null,
float  timeout = 0 
)

◆ GetImage() [1/2]

SResource SineSpace.Scripting.Network.SWebService.GetImage ( string  url,
Action< SWebResponse onComplete = null,
Table  headers = null,
float  timeout = 0 
)

◆ GetImage() [2/2]

SResource SineSpace.Scripting.Network.SWebService.GetImage ( string  url,
Closure  onComplete = null,
Table  header = null,
float  timeout = 0 
)

◆ ParseValidHeaders()

Dictionary<string, string> SineSpace.Scripting.Network.SWebService.ParseValidHeaders ( Table  headers)

◆ Post() [1/2]

void SineSpace.Scripting.Network.SWebService.Post ( string  url,
string  data,
Action< SWebResponse onComplete,
Table  headers = null,
float  timeout = 0 
)

◆ Post() [2/2]

void SineSpace.Scripting.Network.SWebService.Post ( string  url,
string  data,
Closure  onComplete,
Table  headers = null,
float  timeout = 0 
)