conjure-rust
conjure-rust copied to clipboard
Support SMILE in serializable responses
conjure-serde has a SMILE encoder, but we currently don't use it in conjure-http.
Would this just be adding SmileConjureRequestSerializer and SmileConjureResponseDeserializer implementations that can be opted into using? Or would it be like we try to "guess" whether the response is json vs smile, and then use the appropriate deserializer?
On the client side, it'd look like updating https://github.com/palantir/conjure-rust/blob/11fe3acc8229aec537ea939ebfa80f4f52d11c64/conjure-http/src/client.rs#L366-L385 to declare that it accepts SMILE in addition to JSON, and deserializing appropriately.
On the server side, we'd probably want to use the new server runtime added in #258 to allow configuration of the supported MIME types.