confluentinc / confluent-kafka-dotnet

Confluent's Apache Kafka .NET client
https://github.com/confluentinc/confluent-kafka-dotnet/wiki
Apache License 2.0
61 stars 861 forks source link

Add user agent header to the schema registry rest request #2171

Open glvecino opened 8 months ago

glvecino commented 8 months ago

Description

The schema registry RestService implementation: https://github.com/confluentinc/confluent-kafka-dotnet/blob/master/src/Confluent.SchemaRegistry/Rest/RestService.cs does not allow any mechanism to provide headers. In our company we have a WAF blocking any request without UserAgent, so we would like to be able to add at least that header.

How to reproduce

Just in any call of the schema registry captured the UserAgent header is not present.

Checklist