tgvashworth / fetch-engine

A smart request-making library
24 stars 6 forks source link

Implement generic way to compose Promise returning functions. #19

Closed tgvashworth closed 8 years ago

tgvashworth commented 8 years ago

getRequest and getResponse return Promises, and are linearized such that the result of one flows into the later functions. We need a generic way to compose the plugin's functions in a FetchGroup.

This should be a reduce over the plugins.