Files
linuxkit/projects/miragesdk/examples/https-unikernel/src/proto.capnp
Thomas Leonard c7c33b9a56 Add example https-unikernel
This is mainly a test for the Cap'n'Proto RPC support.

Signed-off-by: Thomas Leonard <thomas.leonard@docker.com>
2017-06-07 16:34:59 +01:00

22 lines
319 B
Cap'n Proto

@0xe81d238ec50a0daa;
interface Store {
struct GetResults {
union {
ok @0 :Text;
notFound @1 :Void;
}
}
get @0 (path :List(Text)) -> GetResults;
}
interface Flow {
read @0 () -> (data :Data);
write @1 (data :Data) -> ();
}
interface HttpServer {
accept @0 (connection :Flow) -> ();
}