ware icon indicating copy to clipboard operation
ware copied to clipboard

Easily create your own middleware layer.

Results 4 ware issues
Sort by recently updated
recently updated
newest added

Plugins can be added not only via `.use(plugin)`, but also multiple plugins as an array (`.use([plugin1, plugin2])`), or through the initial object (`ware([plugin1, plugin2])`). Can you please add documentation to...

How does Ware handle errors in middleware? It seems that any error in a middleware will _immediately stop_ the processing of any other middlewares and call the callback with ONLY...

``` function handler (err, obj) { if (err) handleWithContext(err, obj); // obj is undefined :( } middleware.run({ url: 'http://facebook.com' }, handler); ``` The callback should provide the arguments of .run()...

What if we complete our task half-way though the stack?