parnurzeal / gorequest

GoRequest -- Simplified HTTP client ( inspired by nodejs SuperAgent )
http://parnurzeal.github.io/gorequest/
MIT License
3.44k stars 414 forks source link

fasthttp instead of net/http #110

Open iMaxopoly opened 8 years ago

iMaxopoly commented 8 years ago

Hi, this is a question.

I wanted to ask if it's possible to use fasthttp instead of net/http. From what I read it is significantly more performant:

Refer: https://medium.com/@valyala/net-http-client-has-the-following-additional-limitations-318ac870ce9d#.502tduhmn

Refer: https://medium.com/@nate510/don-t-use-go-s-default-http-client-4804cb19f779#.pla7aw7gz

Thanks for your package, been using it daily at work.

parnurzeal commented 8 years ago

For the current code, there is no way to do that.
But would be nice if anyone can help add this functionality. Please see #71 for more details.