tgvashworth / fetch-engine

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

Pass original request to response methods #84

Open tgvashworth opened 7 years ago

tgvashworth commented 7 years ago

Some things in response hooks are hard to implement if you don't have access to the request.

tgvashworth commented 7 years ago

It's kinda fiddly to add a new argument to the various plugin methods, so might be better to add a property to the Response object and pass it it from the fetch implementation.