Skip to content

v0.22.0

Latest

Choose a tag to compare

@ramonmalcolm10 ramonmalcolm10 released this 24 Nov 09:23
28f6137

Needs @rsc-kit/core 0.43 for what is new. An app that doesn't call BuildCalls is unchanged.

rpc() is answered while the renderer builds. reg.BuildCalls("-calls") puts the arguments in the manifest, and reg.ServeCalls(os.Stdin, os.Stdout) answers the engine's calls when the program is run with them. What is the same for everyone is stored with the page. A function that reads the visitor through ctx, or refuses with a 401 or 403, streams per request. rsckit.NotTheVisitor(...) names a context key that isn't about the visitor. (#41)

With BuildCalls, the build runs the functions pages call, so it needs the database; stored answers last until the next build; and per-visitor state kept outside ctx isn't noticed.