confluent-kafka-python
confluent-kafka-python copied to clipboard
Added proxy config support for schema_reg_client
Adds simple support for an (optional) proxy param when configuring the SchemaRegistryClient.
If specified - it will use the supplied proxy details when making requests. If not specified, requests will be made as per usual.
To use it:
proxyDict = {
"http" : "http://proxyhost:proxyport",
"https" : "http://proxyhost:proxyport",
}
schema_registry_conf = {
'url': 'http://schema-registry:8084',
'proxy': proxyDict
}
schema_registry_client = SchemaRegistryClient(schema_registry_conf)
cmpat = schema_registry_client.get_compatibility()
print(f"Compat lvl: {str(cmpat)}")
See issue #1131 for more info
It looks like @Jadon-Jesse hasn't signed our Contributor License Agreement, yet.
The purpose of a CLA is to ensure that the guardian of a project's outputs has the necessary ownership or grants of rights over all contributions to allow them to distribute under the chosen licence. Wikipedia
You can read and sign our full Contributor License Agreement here.
Once you've signed reply with [clabot:check] to prove it.
Appreciation of efforts,
clabot
[clabot:check]
@confluentinc It looks like @Jadon-Jesse just signed our Contributor License Agreement. :+1:
Always at your service,
clabot