Skip to content

Compression Headers #66

@TuSKan

Description

@TuSKan

Hi Kyle, how are you?

Thank you very much for develop this package.
This package is a great contribution. I was using a very old package, with no maintenance. My wish was granted!
I'm more than happy to contribute.

Compression Headers reduces the bandwidth required for a request and could benefits the overall performance.

How do you think is the better way to incorporate this feature in your package?

As the package was develop, doRequest return a http.Response. The reader of the response body needs to be decompressed.

This could be easy done using a NewReader like this one NewReader

And requestPayload in addition to content (Content-Type), need to have a additional parameter encoding (Accept-Encoding) to include on request header.

I'll be glad to know your opinion on that.

Docs:
Compression Headers

Use Compression for Bulk API 2.0 Query Responses

Use Compression for Bulk API 2.0 Ingest Responses

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions