Skip to content

Conversation

@nastra
Copy link
Contributor

@nastra nastra commented Jan 13, 2023

For some context: In #6169 (comment) we're sending back a cache-control header to indicate to the client whether something can be safely cached or not.
However, our HTTPClient didn't have a way to retrieve the response headers from a given request, so a workaround in #6169 was done, where response headers are sent back as part of the actual response.

@github-actions github-actions bot added the core label Jan 13, 2023
@nastra nastra force-pushed the rest-client-send-headers branch from 03e8e0e to 1ff500b Compare January 17, 2023 16:31
@nastra nastra force-pushed the rest-client-send-headers branch from 1ff500b to 1afde07 Compare January 18, 2023 09:02
@nastra
Copy link
Contributor Author

nastra commented Jan 18, 2023

We dicussed offline with @danielcweeks and @rdblue to slim down the PR to only cover POST requests for now as that is the only type of request we need the response headers from in #6169

@nastra nastra changed the title Core: Allow retrieving response headers from last request Core: Support access to response headers from POST requests Jan 18, 2023
@danielcweeks danielcweeks merged commit b0050dc into apache:master Jan 18, 2023
@nastra nastra deleted the rest-client-send-headers branch January 18, 2023 16:35
krvikash pushed a commit to krvikash/iceberg that referenced this pull request Mar 16, 2023
zhongyujiang pushed a commit to zhongyujiang/iceberg that referenced this pull request Apr 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants