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

Why does not the Req method of Session be provided? #48

Open
elonzh opened this issue Mar 12, 2017 · 1 comment
Open

Why does not the Req method of Session be provided? #48

elonzh opened this issue Mar 12, 2017 · 1 comment

Comments

@elonzh
Copy link

elonzh commented Mar 12, 2017

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
@levigross
Copy link
Owner

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

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