confluent-kafka-python icon indicating copy to clipboard operation
confluent-kafka-python copied to clipboard

Added proxy config support for schema_reg_client

Open Jadon-Jesse opened this issue 4 years ago • 4 comments

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

Jadon-Jesse avatar Jun 21 '21 23:06 Jadon-Jesse

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

ghost avatar Jun 21 '21 23:06 ghost

[clabot:check]

Jadon-Jesse avatar Jun 21 '21 23:06 Jadon-Jesse

@confluentinc It looks like @Jadon-Jesse just signed our Contributor License Agreement. :+1:

Always at your service,

clabot

ghost avatar Jun 21 '21 23:06 ghost

CLA assistant check
All committers have signed the CLA.

cla-assistant[bot] avatar Aug 15 '23 18:08 cla-assistant[bot]