mirror of
https://github.com/fluencelabs/gitbook-docs
synced 2025-06-09 21:11:31 +00:00
GitBook: [docs] one page modified
This commit is contained in:
parent
d7e515dd7a
commit
ff28425ff2
@ -6,12 +6,17 @@ The [Fluence Dashboard](https://dash.fluence.dev/) facilitates the discovery of
|
||||
|
||||
In order to execute the cUrl service and collect the result, i.e., response, we call upon our composition and coordination medium Aquamarine via an Aquamarine Intermediate Representation \(AIR\) script.
|
||||
|
||||
```text
|
||||
```scheme
|
||||
;; handle possible errors via xor
|
||||
(xor
|
||||
(seq
|
||||
;; call function 'service_id.request' on node 'relay'
|
||||
(call relay (service_id "request") [url] result)
|
||||
|
||||
;; return result back to the client
|
||||
(call %init_peer_id% (returnService "run") [result])
|
||||
)
|
||||
;; if error, return it to the client
|
||||
(call %init_peer_id% (returnService "run") [%last_error%])
|
||||
)
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user