Constructor
new Remote(target)
An in-memory representation of a node in our network.
Parameters:
Name | Type | Description | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
target |
Object | Target object.
Properties
|
Properties:
Name | Type | Description |
---|---|---|
config |
Object | |
secure |
Boolean |
- Source:
Methods
(async) _DELETE(path, params) → {Object}
HTTP DELETE on the configured Authority.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | HTTP Path to request. |
params |
Object | Map of parameters to supply. |
- Source:
Returns:
- Full description of remote resource.
- Type
- Object
(async) _GET(path, params) → {FabricHTTPResult|String}
HTTP GET against the configured Authority.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | HTTP Path to request. |
params |
Object | Map of parameters to supply. |
- Source:
Returns:
Result of request.
- Type
- FabricHTTPResult | String
(async) _OPTIONS(path, params) → {Object}
HTTP OPTIONS on the configured Authority.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | HTTP Path to request. |
params |
Object | Map of parameters to supply. |
- Source:
Returns:
- Full description of remote resource.
- Type
- Object
(async) _PATCH(path, body) → {Object}
HTTP PATCH on the configured Authority.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | HTTP Path to request. |
body |
Object | Map of parameters to supply. |
- Source:
Returns:
- Full description of remote resource.
- Type
- Object
(async) _POST(path, params) → {FabricHTTPResult|String}
HTTP POST against the configured Authority.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | HTTP Path to request. |
params |
Object | Map of parameters to supply. |
- Source:
Returns:
Result of request.
- Type
- FabricHTTPResult | String
(async) _PUT(path, body) → {FabricHTTPResult|String}
HTTP PUT against the configured Authority.
Parameters:
Name | Type | Description |
---|---|---|
path |
String | HTTP Path to request. |
body |
Object | Map of parameters to supply. |
- Source:
Returns:
Result of request.
- Type
- FabricHTTPResult | String
(async) enumerate() → {Configuration}
Enumerate the available Resources on the remote host.
- Source:
Returns:
An object with enumerable key/value pairs for the Application Resource Contract.
- Type
- Configuration
(async) request(type, path, paramsopt) → {FabricHTTPResult}
Make an HTTP request to the configured authority.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
type |
String | One of `GET`, `PUT`, `POST`, `DELETE`, or `OPTIONS`. | |
path |
String | The path to request from the authority. | |
params |
Object |
<optional> |
Options. |
- Source:
Returns:
- Type
- FabricHTTPResult