Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https/tls and proxy support #21

Open
stephanbuys opened this issue Jan 19, 2017 · 1 comment
Open

https/tls and proxy support #21

stephanbuys opened this issue Jan 19, 2017 · 1 comment

Comments

@stephanbuys
Copy link

Hi David, is running capnpn over tls/https (and through a proxy) something thats feasible to bolt on the this project? I'm contemplating sponsoring the development of something like it as we would like to start to use capnp for message passing between out appliances and servers (I think thats a good use-case :-) )

@dwrensha
Copy link
Member

Hi!

capnp-rpc-rust allows you to construct RPC connections over arbitrary futures-enabled input/output streams. It should work to have input_stream and output_stream be layered on top of TLS, perhaps through the tokio-tls crate.

I think that getting Cap'n Proto RPC to work over HTTPS would be more difficult, because Cap'n Proto RPC is a complex stateful protocol that seems difficult to map into a request/response pattern.

Alternatively, if you don't have a need for the fancier object-capability features of Cap'n Proto RPC, you could define your own simple RPC protocol that uses just Cap'n Proto serialization in HTTP requests/responses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants