urbit/pkg/arvo/sur/tapp.hoon

38 lines
855 B
Plaintext
Raw Normal View History

2019-05-29 01:38:14 +03:00
|* [poke-data=mold out-peer-data=mold]
|%
::
:: Possible async calls
::
+$ card
$% [%wait wire @da]
[%rest wire @da]
2019-05-28 23:23:06 +03:00
[%poke wire dock poke-data]
2019-05-29 01:38:14 +03:00
[%peer wire dock path]
[%pull wire dock ~]
[%diff out-peer-data]
[%request wire request:http outbound-config:http-client]
[%cancel-request wire ~]
[%connect wire binding:http-server term]
2019-06-26 04:41:08 +03:00
[%http-response =http-event:http]
[%rule wire %turf %put turf]
==
::
:: Possible async responses
::
+$ sign
$% [%wake error=(unit tang)]
[%coup =dock error=(unit tang)]
[%quit =dock =path]
[%reap =dock =path error=(unit tang)]
[%bound success=? =binding:http-server]
[%http-response response=client-response:http-client]
==
::
:: Outstanding contracts
::
+$ contract
$% [%wait at=@da]
[%request ~]
==
--