This reverts commit 8e1e40d75b3ab15c194b6bf9570f3edc46e2de58. This reverts commit f073c490f9fd7c5abc033af4857df92229877de7. This reverts commit f187d2d7e01a54823f3e979af9bbd148b398e7e9. This reverts commit bc272862a73cfce1b118586ca39d3a377d841f1b. This reverts commit 30a397513f8890a3406dc7ab91c6e067e3bbfbbb. This reverts commit 4fc6856fb50d88c20a0f533392ca606641c5f38f. Conflicts: urb/urbit.pill urb/zod/base/lib/drum.hoon
2.3 KiB
%eyre
Our http server.
Unix sends http messages to %eyre
, and %eyre
produces http messages
in response. In general, apps and vanes do not call %eyre
; rather,
%eyre
calls apps and vanes. %eyre
uses %ford
and %gall
to
functionally publish pages and facilitate communication with apps.
%eyre
primarily parses web requests and handles them in a variety of
ways, depending on the control string. Nearly all of these are
essentially stateless, like functional publishing with %ford
.
Additionally, there's a fairly significant component that handles
%gall
messaging and subscriptions, which must be stateful.
HTTP Methods
GET
gog
https://[ship-name].urbit.org/gog/[service]
Owner
requesting a page on her own Urbit. gig
https://[ship-name].urbit.org/gig/[user-name]/[service]
Another user
requesting a page on a foreign Urbit.
goe
https://[ship-name].urbit.org/goe/[service]/[port]/[stream]/[sequence]
https://[ship-name].urbit.org/goe/[service]/[port]/[stream]/[sequence].json
Pulls a specific response to her subscription on her own Urbit. gie
https://[ship-name].urbit.org/gie/[user-name]/[service]/[port]/[stream]/[sequence]
https://[ship-name].urbit.org/gie/[user-name]/[service]/[port]/[stream]/[sequence].json
Pulls a specific response to her subscription on a foreign Urbit.
PUT
tos
https://[ship-name].urbit.org/tos/[service]/[port]/[stream]/[path]
{oryx: [string]}
Initiate a subscription on her own Urbit. tis
https://[ship-name].urbit.org/tis/[user-name]/[service]/[port]/[stream]/[path]
{oryx: [string]}
Initiate a subscription on a foreign Urbit.
tom
https://[ship-name].urbit.org/tom/[service]/[port]/[sequence]
{oryx: [string], xyro: [json]}
Send a message to her Urbit with
sequence number [sequence]
. tim
https://[ship-name].urbit.org/tim/[user-name]/[service]/[port]/[sequence]
{oryx: [string], xyro: [json]}
Send a message to a foreign Urbit with
sequence number [sequence]
.
tou
https://[ship-name].urbit.org/tou/[service]/[port]/[stream]
Unsubscribe from stream [stream]
on her Urbit. tiu
https://[ship-name].urbit.org/tiu/[user-name]/[service]/[port]/[stream]
Unsubscribe from stream [stream]
on a foreign Urbit.