You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an <HttpServer> algebraic effect that allows Vera programs to handle incoming HTTP requests with verified contracts.
Design
Vera's algebraic effect system maps naturally to HTTP server patterns. An incoming request is an effect operation; the handler provides the routing and response logic:
Summary
Add an
<HttpServer>algebraic effect that allows Vera programs to handle incoming HTTP requests with verified contracts.Design
Vera's algebraic effect system maps naturally to HTTP server patterns. An incoming request is an effect operation; the handler provides the routing and response logic:
Contracts on handler operations can verify:
Dependencies
HttpRequest/HttpResponsetypes)wasi:http/incoming-handler)Implementation notes
wasi:http/incoming-handlerinterfacehandle[HttpServer]pattern models request routing as an effect handlerDivergeeffect (already supported)handle[Async](handle[Async] — custom scheduling strategies #270)