Open
Description
release::releases::get_logs()
is currently defined to return Result<String>
. However, it currently returns a lot of unprintable/garbled data...
Inspection of the response headers shows that the data is in compressed format:
content-type: application/zip; api-version=7.1-preview.2
Need to decide whether this API function should:
- Auto-decompress the data, by inspecting the
content-type
header and doing unzip before returning the data asResult<String>
- Document the fact that the returned data is zipped, and change the return type to be raw data:
Result<Vec<u8>>
, leaving it up to the application to decompress (if required - app might just want to write the logs as a compressed file...)
I expect that this might apply to other API functions too.
Metadata
Metadata
Assignees
Labels
No labels