grantila / fetch-h2

HTTP/1+2 Fetch API client for Node.js
MIT License
336 stars 16 forks source link

Support for AbortSignal #35

Closed timdp closed 5 years ago

timdp commented 5 years ago

So I'd like to make my fetch calls cancelable by passing an AbortSignal.

The fetch-h2 docs link to AbortSignal, suggesting that the signal option is supported. However, looking at the code:

Long story short, I guess this feature is not supported yet? :slightly_smiling_face:

grantila commented 5 years ago

Right, this is only used internally now to implement timeout. I'm building full support as I write this.

timdp commented 5 years ago

Awesome! :+1:

grantila commented 5 years ago

:tada: This issue has been resolved in version 2.2.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: