[–] MatthewPhillips 14y ago ↗ Looks nice. Comment/suggestion: if there is no reason to have more than one instance of Shred (and it appears not), then require('shred') should just return a new instance. [–] dyoder 14y ago ↗ Thanks for your suggestion, Matthew.We do anticipate some applications wanting more than one instance. There are two scenarios where this comes up.1. You want separate connections per instance. This is useful in load testing, among other things.2. You want to provide different default options for different instances.Neither of these scenarios is supported very well in this release, but we expect to add support for them shortly.
[–] dyoder 14y ago ↗ Thanks for your suggestion, Matthew.We do anticipate some applications wanting more than one instance. There are two scenarios where this comes up.1. You want separate connections per instance. This is useful in load testing, among other things.2. You want to provide different default options for different instances.Neither of these scenarios is supported very well in this release, but we expect to add support for them shortly.
[–] LeafStorm 14y ago ↗ Is there anything like this for client-side JS that wraps XMLHttpRequest? [–] rwolf 14y ago ↗ Assuming you're not using jQuery because of the heft, I suggest: https://github.com/ded/reqwestThe conspicuously absent feature from shred is the nice sugar for handling status codes. [–] [deleted] 14y ago ↗ (comment deleted)
[–] rwolf 14y ago ↗ Assuming you're not using jQuery because of the heft, I suggest: https://github.com/ded/reqwestThe conspicuously absent feature from shred is the nice sugar for handling status codes.
[–] adrianscott 14y ago ↗ kind of an unfortunate name, given that there's a linux command by that name...
6 comments
[ 5.1 ms ] story [ 29.6 ms ] threadWe do anticipate some applications wanting more than one instance. There are two scenarios where this comes up.
1. You want separate connections per instance. This is useful in load testing, among other things.
2. You want to provide different default options for different instances.
Neither of these scenarios is supported very well in this release, but we expect to add support for them shortly.
The conspicuously absent feature from shred is the nice sugar for handling status codes.