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

implement saihu-htttp #7

Closed
gasolin opened this issue Aug 18, 2016 · 1 comment
Closed

implement saihu-htttp #7

gasolin opened this issue Aug 18, 2016 · 1 comment

Comments

@gasolin
Copy link
Owner

gasolin commented Aug 18, 2016

refer to gasolin/webbybot#67

wrap fetch api as Saihu.http

http(URL)
  .query({})
  .header('User-Agent', 'Mozilla/5.0')
  .get(err, res, body) {...}
@gasolin
Copy link
Owner Author

gasolin commented Feb 2, 2017

It's fine to use fetch or XMLHttpRequest directly

@gasolin gasolin closed this as completed Feb 2, 2017
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

1 participant