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

Clients support gzip / deflate ? #215

Closed
centminmod opened this issue Dec 4, 2014 · 3 comments
Closed

Clients support gzip / deflate ? #215

centminmod opened this issue Dec 4, 2014 · 3 comments

Comments

@centminmod
Copy link

Any plans for Locust clients to support gzip and deflate for compressed page calls ?

@centminmod
Copy link
Author

reading through change log for 0.6 http://docs.locust.io/en/latest/changelog.html seems to suggest there is gzip support enabled by default, but my requests all have content length that is of uncompressed size http://docs.locust.io/en/latest/changelog.html#gzip-encoding-turned-on-by-default ?

or is this relevant http://docs.locust.io/en/latest/changelog.html#improved-http-client

so something like this (no python coder heh)

class MyTaskSet(TaskSet):
    @task(1)
    def mainindex(self):
        self.client.get("/", headers={"Accept-Encoding":"gzip, deflate, sdch"})

@Jahaja
Copy link
Member

Jahaja commented Dec 5, 2014

The support is there. However, the UI currently displays the uncompressed size of the content. I agree that it would be useful to see the uncompressed size though.

@Jahaja Jahaja closed this as completed Dec 5, 2014
@centminmod
Copy link
Author

Oh i see so it is testing for compressed size just web gui shows uncompressed

btw, is the above code i posted valid for passing headers such as Accept-Encoding ? just curious and learning

cheers

George

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

No branches or pull requests

2 participants