|
NWNX:EE
8193.36.12
|
|
Go to the documentation of this file.
7 const string NWNX_HTTPClient =
"NWNX_HTTPClient";
73 string sFunc =
"SendRequest";
93 string sFunc =
"GetRequest";
int NWNX_GetReturnValueInt()
Returns the specified type from the c++ side.
int nRequestMethod
A Request Type.
const int NWNX_HTTPCLIENT_REQUEST_METHOD_GET
const int NWNX_HTTPCLIENT_AUTH_TYPE_DIGEST
const int NWNX_HTTPCLIENT_REQUEST_METHOD_OPTION
A structure for an HTTP Client Request.
const int NWNX_HTTPCLIENT_REQUEST_METHOD_POST
int NWNX_HTTPClient_SendRequest(struct NWNX_HTTPClient_Request s)
Sends an http method to the given host.
const int NWNX_HTTPCLIENT_REQUEST_METHOD_PUT
const int NWNX_HTTPCLIENT_REQUEST_METHOD_DELETE
const int NWNX_HTTPCLIENT_REQUEST_METHOD_HEAD
const int NWNX_HTTPCLIENT_AUTH_TYPE_BEARER_TOKEN
const int NWNX_HTTPCLIENT_CONTENT_TYPE_JSON
int nContentType
A Content Type.
struct NWNX_HTTPClient_Request NWNX_HTTPClient_GetRequest(int nRequestId)
Returns an NWNX_HTTP_Client_Request structure.
const int NWNX_HTTPCLIENT_REQUEST_METHOD_PATCH
void NWNX_CallFunction(string pluginName, string functionName)
Scripting interface to NWNX.
string NWNX_GetReturnValueString()
Returns the specified type from the c++ side.
void NWNX_PushArgumentString(string value)
Pushes the specified type to the c++ side.
string sData
The data being sent.
string sAuthUserOrToken
The authentication username or token.
const int NWNX_HTTPCLIENT_AUTH_TYPE_BASIC
const int NWNX_HTTPCLIENT_CONTENT_TYPE_HTML
void NWNX_PushArgumentInt(int value)
Pushes the specified type to the c++ side.
string sHost
The host domain name/IP address.
int nAuthType
An Authentication Type.
string sHeaders
Pipe (|) delimited header pairs, e.g. "User-Agent: My NWNX HTTP Client|Accept: application/vnd....
const int NWNX_HTTPCLIENT_AUTH_TYPE_NONE
string sAuthPassword
The authentication password (ignored if just using a token)
string sPath
The path for the url (include the leading /)
const int NWNX_HTTPCLIENT_CONTENT_TYPE_XML
const int NWNX_HTTPCLIENT_CONTENT_TYPE_FORM_URLENCODED
string sTag
A unique tag for this request.
const int NWNX_HTTPCLIENT_CONTENT_TYPE_PLAINTEXT