grequests icon indicating copy to clipboard operation
grequests copied to clipboard

Why does not the Req method of Session be provided?

Open elonzh opened this issue 8 years ago • 1 comments

This project is convenient for simply requesting and response handling, but it's tricky if you want to hook the request will be sent or the response we received.

Here are my suggestions:

  • Add a Req method for Session
  • Export buildRequest and send request in other place, like requests in Python
  • Export buildResponse for external response packging

elonzh avatar Mar 12 '17 12:03 elonzh

That is a good idea, I am thinking on adding some hooks to RequestOptions to do that

levigross avatar Mar 20 '17 00:03 levigross