You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by GitBox <gi...@apache.org> on 2022/07/11 01:15:00 UTC
[GitHub] [iceberg] kbendick commented on pull request #5238: Core - Add build information to all requests sent by HTTPClient
kbendick commented on PR #5238:
URL: https://github.com/apache/iceberg/pull/5238#issuecomment-1179853104
Here's a sample of the headers sent for each request, per the mock server tests:
Relevant portions:
`X-Client-Git-Commit-Short`: `"a850705"
`X-Client-Version`: `""Apache Iceberg 0.14.0-SNAPSHOT (commit a8507057f778efba6f1750ae814749f52a4cd7bc)"`
We can update these header names or which values are used (as well as where they're placed and how, but I think `HTTPClientFactory` makes sense).
The headers can technically be overridden via the config `header.X-Client-Git-Commit-Short` in the configuration, although we can code against that (make it a reserved property) if desired.
```
"headers" : {
"Accept" : [ "application/json" ],
"Content-Type" : [ "application/json" ],
"X-Client-Git-Commit-Short" : [ "a850705" ],
"X-Client-Version" : [ "Apache Iceberg 0.14.0-SNAPSHOT (commit a8507057f778efba6f1750ae814749f52a4cd7bc)" ],
"Authorization" : [ "Bearer auth_token" ],
"Accept-Encoding" : [ "gzip, x-gzip, deflate" ],
"Host" : [ "127.0.0.1:1080" ],
"Connection" : [ "keep-alive" ],
"User-Agent" : [ "Apache-HttpClient/5.1 (Java/11.0.15)" ],
"content-length" : [ "0" ]
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org