Closed natevw closed 8 years ago
Another idea: "annotated" callbacks, e.g. url.post(data, fermata.stream(cb))
Meta-idea: a plugin can change req.responseType
on its way to a transport. Perhaps first figuring out how plugins can get mixed-in later (#30) and then revisiting streams/promises would be a better design approach.
This might be an event better idea: add an opts
param to the left of headers
. This might be the most general-purpose way, since putting things like this into 'X-Fermata-
I think it's clear that this needs to be controllable. What's not clear is if the right solution is:
Almost leaning towards the latter at the moment…