jarcoal / httpmock

HTTP mocking for Golang
http://godoc.org/github.com/jarcoal/httpmock
MIT License
1.93k stars 103 forks source link

NewGZipResponder #27

Closed willis7 closed 4 years ago

willis7 commented 7 years ago

Some API's return GZip compressed responses. This would be a really useful feature to support.

dlebech commented 7 years ago

Thanks for the suggestion. I'll look into how easy/feasible this is once I have a bit of time leftover :)

maxatome commented 4 years ago

@willis7 I don't know if you still need the feature, but what do you need exactly? Is it to only set the request Accept-Encoding header to gzip and let your client gunzip the body content? If yes, that is pretty simple to implement as we can mimic the net/http.Transport behavior. Tell us.

willis7 commented 4 years ago

Hi @maxatome, I have not use httpmock in a while. I will close this issue for completeness.