call method

Future call (
  1. String method,
  2. String route,
  3. String correlationId,
  4. Map<String, String> params,
  5. [dynamic data]
)
inherited

Calls a remote method via HTTP/REST protocol.

  • method HTTP method: 'get', 'head', 'post', 'put', 'delete'
  • route a command route. Base route will be added to this route
  • correlationId (optional) transaction id to trace execution through call chain.
  • params (optional) query parameters.
  • data (optional) body object. Returns Future that receives result object Throw error.