Class: Remote

Remote(target)

new Remote(target)

An in-memory representation of a node in our network.
Parameters:
Name Type Description
target Object Target object.
Properties
Name Type Description
host String Named host, e.g. "localhost".
secure String Require TLS session.
Source:

Methods

_GET(path, params) → {Mixed}

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:
[description]
Type
Mixed

_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

_POST(path, params) → {Mixed}

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:
[description]
Type
Mixed

_PUT(path, obj) → {Mixed}

HTTP PUT against the configured Authority.
Parameters:
Name Type Description
path String HTTP Path to request.
obj Object Map of parameters to supply.
Source:
Returns:
[description]
Type
Mixed