HTTP 🎧 headers with 🕵🏼♀️ agents
Starting this release each request to the Schema Registry will have an additional header User-Agent. It's done in response to issue #101 when the AWS setup rejects the request.
The default value will contain the current version of the library, its name, and the language, for example: Avrora/0.25.0 Elixir
If you want the previous behaviour, i.e no User-Agent header or your custom header value, then you can adjust it via the registry_user_agent configuration option by setting it to nil or your String respectively.
defmodule MyClient
use Avrora.Client, registry_user_agent: "Hello world" # you can set it to whatever you like
end
defmodule MyClientWithoutUserAgent
use Avrora.Client, registry_user_agent: nil # or you can disable User-Agent header
endThanks to @azeemchauhan for bringing it up 💟