Re: [capnproto] Middleware & Attaching metadata to calls/returns?

2020-10-19 Thread 'Kenton Varda' via Cap'n Proto
Hi Erin, In Cloudflare Workers, we've had some success attaching certain kinds of metadata by having a wrapper object which is called first, like: interface Endpoint { startCall @0 (metadata :Metadata) -> (dispatcher :CallDispatcher); } interface CallDispatcher { foo @0 (

[capnproto] Middleware & Attaching metadata to calls/returns?

2020-10-12 Thread Erin Shepherd
Many protocols provide some way to attach metadata to requests & responses. HTTP and protocols derved from it provide this in the form of headers (and occasionally trailers), for example. There are various reasons why this can be very useful, even in a capability oriented system: * Propagatin