@@ -540,6 +540,8 @@ expect([...makeIterableHeaders(myHeaders)].length).to.equal(2);
540540
541541## hasHeader and getHeader
542542
543+ > Since ** v0.8.0**
544+
543545These are two helper functions that do exactly what the names imply: ` hasHeader ` checks for the existence of a
544546particular HTTP header; ` getHeader ` obtains the value of a particular HTTP header.
545547
@@ -636,11 +638,11 @@ to life as the download progresses.
636638> Since ** v0.10.0**
637639
638640If your custom data-fetching function (your custom ` fetch() ` ) has abilities that require extra custom options from the
639- caller, you're in luck: You can and TypeScript and Intellisense will fully work for you .
641+ caller, you're in luck: You can, and TypeScript and Intellisense will fully have your back .
640642
641643To exemplify, let's do ** upload progress** with the ` fetch-api-progress ` NPM package.
642644
643- First , create your custom data-fetching function:
645+ As first and last step , create your custom data-fetching function and give it to ` DrFetch ` :
644646
645647``` typescript
646648// uploader.ts
@@ -659,7 +661,7 @@ function uploadingFetch(url: FetchFnUrl, init?: UploaderInit) {
659661export default new DrFetch (uploadingFetch ); // This will be fully typed to support onProgress.
660662```
661663
662- This is it. From this point forward, you just use this uploader object and the uploads will report progress:
664+ Simple, right? I hope it is.
663665
664666``` typescript
665667import uploader from ' ./uploader.js' ;
@@ -683,5 +685,5 @@ with interceptors in `axios` and `ky`. :smile:
683685If you feel you definitely need more, remember that ` DrFetch ` is a class. You can always extend it as per JavaScript's
684686own rules.
685687
686- Also, feel free to [ open a new issue] ( https://github.com/WJSoftware/dr-fetch/issues ) if you have an idea for a feature
687- that cannot be easily achievable in "user land".
688+ Are you still stuck? [ Open a new issue] ( https://github.com/WJSoftware/dr-fetch/issues ) if you have an idea for a
689+ feature that cannot be easily achievable in "user land".
0 commit comments