-
Notifications
You must be signed in to change notification settings - Fork 103
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
merge in to mikeal/request #3
Comments
aww he likes it! |
I would like that too, particulary since browser-request is missing tons of API stuff that request still does. Off the top of my head, I see a few challenges
|
what submodule wants LGPL? i'm confused as to why we need NPM or Ender? Why can't we just run it through a minifier and release it like everyone else releases their browser libraries? the docs would change dramatically. we would start with some examples that work in both places, then talk about streams and note that it's node only. then we would list all the options, sectioning them out and noting which sections only pertain to node (you'll never be able to take options like cookiejar). |
browser-request builds directly from xhr. However it uses a very nice library called XMLHttpRequest.js (not the best name), like a CSS reset style, but for XHR; it removes all idiosyncrasies and bugs. See http://www.ilinsky.com/articles/XMLHttpRequest/ for a feature list. XMLHttpRequest.js is LGPL. For that reason, I kept it arm's length via Git submodule. Good point that we might merge the projects before solving the tedium of documentation and examples. So the following paragraph is not a dealbreaker. We don't need NPM or Ender; but my point is, for my money, the best thing about Node is NPM. Everything is there. It's simple. Browser libraries OTOH are just total chaos. It's nonstop emails and semi-useful bug reports because people didn't install it right or whatever. Ender and RequireJS solve that; but unless you're Yahoo or Twitter, the medicine is worse than the disease. So I was reminding you how awful it is to maintain browser libraries, asking if you're cool with that. |
+1 When comparing, say, reqwest or jQuery.ajax, to browser-request, I think the main expectation is that the API will ressemble mikeal/request's, but they don't have to be identical -- it would be fine to have in the documentation comments like "(Node.js only)". FWIW ahr2 doesn't try to do streams; http-browserify "does". |
Just adding a +1 on idea of a possible combination with @mikeal's "upstream" request. Especially see the value of code-sharing and extension with new features. |
Two notes based on things I encountered recently:
|
I got here because the request repo I can't use with browserify. This one worked. But now I am confused, You wanted to merge the two almost 3 years ago. That never happened I guess? |
we should think about a strategy for merging this in to the main request repository.
there is a good amount of code now that can be shared, the OAuth signing code in particular.
i'd also like new options that people write for node-request to go in to the browser version.
The text was updated successfully, but these errors were encountered: