NWNX:EE  8193.36.12
nwnx_httpclient.nss File Reference
#include "nwnx"

Go to the source code of this file.

Classes

struct  NWNX_HTTPClient_Request
 A structure for an HTTP Client Request. More...
 

Functions

int NWNX_HTTPClient_SendRequest (struct NWNX_HTTPClient_Request s)
 Sends an http method to the given host. More...
 
struct NWNX_HTTPClient_Request NWNX_HTTPClient_GetRequest (int nRequestId)
 Returns an NWNX_HTTP_Client_Request structure. More...
 

Variables

Request Types

const int NWNX_HTTPCLIENT_REQUEST_METHOD_GET = 0
 
const int NWNX_HTTPCLIENT_REQUEST_METHOD_POST = 1
 
const int NWNX_HTTPCLIENT_REQUEST_METHOD_DELETE = 2
 
const int NWNX_HTTPCLIENT_REQUEST_METHOD_PATCH = 3
 
const int NWNX_HTTPCLIENT_REQUEST_METHOD_PUT = 4
 
const int NWNX_HTTPCLIENT_REQUEST_METHOD_OPTION = 5
 
const int NWNX_HTTPCLIENT_REQUEST_METHOD_HEAD = 6
 
Content Types

const int NWNX_HTTPCLIENT_CONTENT_TYPE_HTML = 0
 
const int NWNX_HTTPCLIENT_CONTENT_TYPE_PLAINTEXT = 1
 
const int NWNX_HTTPCLIENT_CONTENT_TYPE_JSON = 2
 
const int NWNX_HTTPCLIENT_CONTENT_TYPE_FORM_URLENCODED = 3
 
const int NWNX_HTTPCLIENT_CONTENT_TYPE_XML = 4
 
HTTP Authentication Types

const int NWNX_HTTPCLIENT_AUTH_TYPE_NONE = 0
 
const int NWNX_HTTPCLIENT_AUTH_TYPE_BASIC = 1
 
const int NWNX_HTTPCLIENT_AUTH_TYPE_DIGEST = 2
 
const int NWNX_HTTPCLIENT_AUTH_TYPE_BEARER_TOKEN = 3