mirror of
https://github.com/fluencelabs/gitbook-docs
synced 2025-06-14 15:31:33 +00:00
GitBook: [docs] one page modified
This commit is contained in:
@ -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.
|
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
|
(xor
|
||||||
(seq
|
(seq
|
||||||
|
;; call function 'service_id.request' on node 'relay'
|
||||||
(call relay (service_id "request") [url] result)
|
(call relay (service_id "request") [url] result)
|
||||||
|
|
||||||
|
;; return result back to the client
|
||||||
(call %init_peer_id% (returnService "run") [result])
|
(call %init_peer_id% (returnService "run") [result])
|
||||||
)
|
)
|
||||||
|
;; if error, return it to the client
|
||||||
(call %init_peer_id% (returnService "run") [%last_error%])
|
(call %init_peer_id% (returnService "run") [%last_error%])
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user