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

Version Path
flok-0.0.103 docs/services/rest.md
flok-0.0.102 docs/services/rest.md
flok-0.0.101 docs/services/rest.md
flok-0.0.100 docs/services/rest.md
flok-0.0.99 docs/services/rest.md
flok-0.0.98 docs/services/rest.md
flok-0.0.97 docs/services/rest.md
flok-0.0.96 docs/services/rest.md
flok-0.0.95 docs/services/rest.md
flok-0.0.94 docs/services/rest.md
flok-0.0.93 docs/services/rest.md
flok-0.0.92 docs/services/rest.md
flok-0.0.91 docs/services/rest.md
flok-0.0.90 docs/services/rest.md
flok-0.0.89 docs/services/rest.md
flok-0.0.88 docs/services/rest.md
flok-0.0.87 docs/services/rest.md
flok-0.0.86 docs/services/rest.md
flok-0.0.85 docs/services/rest.md
flok-0.0.84 docs/services/rest.md