RESTConnector Class |
Namespace: IBM.Watson.DeveloperCloud.Connection
public class RESTConnector
The RESTConnector type exposes the following members.
Name | Description | |
---|---|---|
RESTConnector | Initializes a new instance of the RESTConnector class |
Name | Description | |
---|---|---|
Authentication |
Credentials used to authenticate with the server.
| |
Headers |
Additional headers to attach to all requests.
| |
LogResponseTime |
Specify a time to log to the logging system when a response takes longer than this amount.
| |
URL |
Base URL for REST requests.
|
Name | Description | |
---|---|---|
GetConnector |
This function returns a RESTConnector object for the given service and function.
| |
GetResponseCode | ||
ParseResponseCode | ||
Send |
Send a request to the server. The request contains a callback that is invoked
when a response is received. The request may be queued if multiple requests are
made at once.
|
Name | Description | |
---|---|---|
AUTHENTICATION_AUTHORIZATION_HEADER | ||
AUTHENTICATION_TOKEN_AUTHORIZATION_HEADER | ||
HTTP_STATUS_CREATED | ||
HTTP_STATUS_NO_CONTENT | ||
HTTP_STATUS_OK |