For folks that want to reuse the encapsulation format it would be useful to be able to compile this crate with custom request and response labels. Right now, the crate mandates BHTTP as the underlying content. As a proof-of-concept, I implemented a protobuf-based encoding for HTTP messages and plumbed it into this crate in this change. It's not great... I basically want the equivalent of compile-time strings, but I don't know the best way to do that in Rust.
For folks that want to reuse the encapsulation format it would be useful to be able to compile this crate with custom request and response labels. Right now, the crate mandates BHTTP as the underlying content. As a proof-of-concept, I implemented a protobuf-based encoding for HTTP messages and plumbed it into this crate in this change. It's not great... I basically want the equivalent of compile-time strings, but I don't know the best way to do that in Rust.