How to get "Open-EO-Costs" from synchronous `download`
The response of synchronous processing (https://api.openeo.org/#tag/Data-Processing/operation/compute-result) has an optional "OpenEO-Costs" header with processing costs.
How could we expose that to user from a simple cube.download() call?
(Same question for the optional "Link" header in synchronous processing response, but I don't think there are implementations of that in the wild yet)
:eyes:
I was also thinking of the Request-Id header for debugging (successful) requests; looks like an easier version of the Link header.
and related, here I propose to add a OpenEO-Identifier header for sync requests to align better with batch job creation:
- https://github.com/Open-EO/openeo-api/pull/533
(Same question for the optional "Link" header in synchronous processing response, but I don't think there are implementations of that in the wild yet)
The Google Earth Engine driver implements it if you want to test it.
https://github.com/Open-EO/openeo-api/pull/533 was just merged, so the "OpenEO-Identifier" header (which should hold request id) is within the "official" scope of this feature request as well
as generic solution, I added to the download methods an on_response_headers argument to handle the response headers
e.g. to just print them: cube.download(..., on_response_headers=print)
I think that's enough for now