JadeHTTPConnection Class Constants
The constants provided by the JadeHTTPConnection class are listed in the following table.
Name | Type and Value | Description |
---|---|---|
AuthType_Basic | String = "Basic " | Used for basic authentication |
AuthType_Bearer | String = "Bearer " | Used for bearer token authentication |
Default_FTP | Integer = 21 | Default FTP port |
DefaultPort_HTTP | Integer = 80 | Default HTTP port |
DefaultPort_HTTPS | Integer = 443 | Default HTTPS port |
DefaultPort_Invalid | Integer = -1 | Default invalid port |
DefaultPort_Socks | Integer = 1080 | Default SOCKS port |
HeaderType_Client | Integer = 1 | Client HTTP header type |
HeaderType_Server | Integer = 2 | Server HTTP header type |
Header_Accept | String = "Accept" | Accept header |
Header_ContentLength | String = "Content‑Length" | Content‑length header |
Header_ContentType | String = "Content‑Type" | Content‑type header |
Header_Host | String = "Host" | Host header |
Header_KeepAlive | String = "Proxy‑Connection" | Proxy‑connection header |
Header_Protocol | String = "Protocol" | Protocol header |
Header_ReasonPhrase | String = "Reason‑Phrase" | Reason‑phrase header |
Header_Referer | String = "Referer" | Referer header |
Header_SoapAction | String = "SOAPAction" | SOAPAction header |
Header_StatusCode | String = "Status‑Code" | Status‑code header |
Header_UserAgent | String = "User-Agent" | User-agent header |
HttpResponse_Created | Integer = 201 | HTTP status code signifying that the REST request successfully created a resource |
HttpResponse_Forbidden | Integer = 403 | HTTP status code signifying that the REST request was understood but refused |
HttpResponse_NotFound | Integer = 404 | HTTP status code signifying that the REST request targeted a resource that does not exist on the server |
HttpResponse_Success | Integer = 200 | HTTP status code signifying that the REST request was successful |
HttpResponse_Unauthorized | Integer = 401 | HTTP status code signifying that the REST request did not contain the required user authentication |
Maximum_Successful_StatusCode | Integer = 299 | Maximum successful HTTP status code of a REST client request to the server |
Minimum_Successful_StatusCode | Integer = 200 | Minimum successful HTTP status code of a REST client request to the server |
ProtocolVersion_1_0 | String = "HTTP/1.0" | HTTP Protocol 1.0 |
ProtocolVersion_1_1 | String = "HTTP/1." | HTTP Protocol 1.1 |
ProxyConfig_Direct | Integer = 1 | Resolves all host names locally |
ProxyConfig_Preconfig | Integer = 0 | Retrieves the proxy or direct configuration from the registry |
ProxyConfig_Preconfig_NoAuto | Integer = 4 | Retrieves the proxy or direct configuration from the registry and prevents the use of a start‑up Microsoft JScript or wpad.dat file |
ProxyConfig_Proxy | Integer = 3 | Passes requests to the proxy |
Scheme_DIRECT | String = "jadehttp.tcp" | JADE Direct scheme |
Scheme_DIRECT_6_2 | String = "jadehttp.tcp2" | JADE 6.2 Direct scheme |
Scheme_DIRECT_6_2_TcpIpV4 | String = "jadehttp.tcp2v4" | JADE 6.2 TcpIPv4 Direct scheme |
Scheme_DIRECT_6_2_TcpIpV6 | String = "jadehttp.tcp2v6" | JADE 6.2 TcpIPv6 Direct scheme |
Scheme_FILE | String = "file" | File scheme; not supported |
Scheme_FTP | String = "ftp" | FTP scheme; not supported |
Scheme_HTTP | String = "http" | HTTP scheme |
Scheme_HTTPS | String = "https" | HTTPS scheme |
State_Failure | Integer = 8 | Failed HTTP connection state (for details, see the state property) |
State_NeedConnection | Integer = 0 | Not connected |
State_NeedRequest | Integer = 1 | Connected and waiting for request |
State_NoData | Integer = 6 | No data available; not supported |
Verb_CONNECT | String = "CONNECT" | The CONNECT operation |
Verb_DELETE | String = "DELETE" | The DELETE operation |
Verb_GET | String = "GET" | The GET operation |
Verb_HEAD | String = "HEAD" | The HEAD operation |
Verb_OPTIONS | String = "OPTIONS" | The OPTIONS operation |
Verb_PATCH | String = "PATCH" | The PATCH operation |
Verb_POST | String = "POST" | The POST operation |
Verb_PUT | String = "PUT" | The PUT operation |
Verb_TRACE | String = "TRACE" | The TRACE operation |