Move to reqwest and support proxy and api key for the schema registry calls
gklijs opened this issue · comments
Is your feature request related to a problem? Please describe.
Leaving curl for better support in other compilation target's like WASM. Also might reduce some complexity
because reqwest has json support, https://crates.io/crates/reqwest.
Describe the solution you'd like
Replace dependency and use, for configuration try to stay close to the names used in https://github.com/confluentinc/schema-registry/blob/master/client/src/main/java/io/confluent/kafka/schemaregistry/client/SchemaRegistryClientConfig.java where possible. It will likely mean the current schema_registry_url that is passed around will be a struct instead, with the url as only mandatory property.
Describe alternatives you've considered
Adding the featured to curl, it's possible, but make it more work to move to reqwest. So seems better to do both at the same time, before releasing 2.0.0
Additional context
Not applicable