zio-http
zio-http copied to clipboard
Client default User Agent request header
Is your feature request related to a problem? Please describe. There are many REST APIs that are mandating http clients to provide a proper User Agent request header. One of those APIs is Github API that reject the request that do not provide a valid User Agent request header with each request.
Describe the solution you'd like ZIO Http client should provide a default value for User Agent request header, following the recommendations from Http 1.1 Specification
Can I take this?
Yes please!
Hi @tusharmath
I'm planning to set the default user-agent as Zio-Http-Client ${zio-http-jar-version} Scala ${scala-version}
.
please let me know your feedback.
Hi @tusharmath
I'm planning to set the default user-agent as
Zio-Http-Client ${zio-http-jar-version} Scala ${scala-version}
.please let me know your feedback.
Looks good to me