The main goal of this PR is to allow users of this package to cancel any ongoing request through the usage of AbortControllers and ̀AbortSignals
However, it also allows them to have more influence on any request, by changing its headers and other things (with the exception of body)
@baileyherbert This PR does things pretty much the way you came up with, so maybe you'd like to check if anything looks odd here?
If you do, there's no need to look through misc.ts, its only real addition is the code for merging signals together, which remains completely unchanged
Closes #33
The main goal of this PR is to allow users of this package to cancel any ongoing request through the usage of
AbortController
s and ̀AbortSignal
s However, it also allows them to have more influence on any request, by changing its headers and other things (with the exception ofbody
)@baileyherbert This PR does things pretty much the way you came up with, so maybe you'd like to check if anything looks odd here? If you do, there's no need to look through
misc.ts
, its only real addition is the code for merging signals together, which remains completely unchanged