Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for zstd as response content-encoding and request body compression #1080

Closed
na-- opened this issue Jul 12, 2019 · 0 comments
Closed

Comments

@na--
Copy link
Member

na-- commented Jul 12, 2019

Info about Zstandard, i.e. zstd:

Native Go library that seems to support it: https://github.com/klauspost/compress/tree/master/zstd#zstd

The brotli compression/decompression issue is very similar to this one: #776

After the refactoring in #989, it's now fairly easy to add support for new compression and content-encoding algorithms. Basically, if there's a nice Go library, we only need to plug it in these places (maybe with a bit of refactoring) and, of course, add some tests:
https://github.com/loadimpact/k6/blob/c85438949d00c2ca8a89d04b2837bb087a3d3201/lib/netext/httpext/request.go#L77-L91
https://github.com/loadimpact/k6/blob/c85438949d00c2ca8a89d04b2837bb087a3d3201/lib/netext/httpext/request.go#L142-L149
https://github.com/loadimpact/k6/blob/c85438949d00c2ca8a89d04b2837bb087a3d3201/lib/netext/httpext/request.go#L182-L198

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant