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

Rewrite request #10

Open
manobi opened this issue Mar 31, 2012 · 1 comment
Open

Rewrite request #10

manobi opened this issue Mar 31, 2012 · 1 comment

Comments

@manobi
Copy link
Member

manobi commented Mar 31, 2012

Maybe something like:
To be compatible with visionmedia/superagent and mikeal/request

  request.json();
  request.img();

So in node we can do
var request = require('request');
connection.request.json = request.get;
connection.request.img = request.get;

@manobi
Copy link
Member Author

manobi commented Oct 31, 2012

Or we could just create an alias:

request = request();

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