Sha256: e8bddc139976bd3e95c6d625d711fc39fb9cc3aa20d0aa2f929b121c2ca84fe4
Contents?: true
Size: 833 Bytes
Versions: 57
Compression:
Stored size: 833 Bytes
Contents
#Rest Service This is the RESTful network request service. Designed for small payloads of RESTful network requests. #Options * `base_url` - The url like `"http://services.my_host.com/"` for the path to be based on. Must include ending slash. ###Info to start a request ```js var info = { path: "/user/register", params: { my_param_0: "test", } } Request("<service name>", "get", info); ``` You will then receive the event `rest_res`. For sucessful requests, `rest_res` will be sent as an event. This event will contain `path` and `res` where `path` is the `path` given in th request and `res` is the results of the request. ###Globals * `rest_in_flight` - A hash that maps `rest_in_flight[tp_base] => bp` where `[bp, path]` is the requesting entity for the original request and `path` is the original path.
Version data entries
57 entries across 57 versions & 1 rubygems