@@ -185,11 +185,11 @@ const localFetcher = rootFetcher.clone(true, { fetchFn: false }); // Identical p
185185
186186> Since ** v0.3.0**
187187
188- ` DrFetch ` objects now provide the shortcut functions ` get ` , ` post ` , ` patch ` , ` put ` and ` delete ` . Except for ` get ` , all
189- these accept a body parameter. When this body is a POJO or an array, the body is stringified and the ` Content-Type `
190- header is given the value ` application/json ` . If a body of any other type is given (that the ` fetch() ` function
191- accepts, such as ` FormData ` ), no headers are explicitly specified and therefore it is up to what ` fetch() ` (or the
192- custom data-fetching function you provide) does in these cases.
188+ ` DrFetch ` objects now provide the shortcut functions ` get ` , ` head ` , ` post ` , ` patch ` , ` put ` and ` delete ` . Except for
189+ ` get ` and ` head ` , all these accept a body parameter. When this body is a POJO or an array, the body is stringified and
190+ the ` Content-Type ` header is given the value ` application/json ` . If a body of any other type is given (that the
191+ ` fetch() ` function accepts, such as ` FormData ` ), no headers are explicitly specified and therefore it is up to what
192+ ` fetch() ` (or the custom data-fetching function you provide) does in these cases.
193193
194194``` typescript
195195import type { Todo } from ' ./myTypes.js' ;
@@ -315,4 +315,4 @@ expect([...makeIterableHeaders(myHeaders)].length).to.equal(2);
315315
316316Why are you a weird fellow/gal? Anyway, prejudice aside, body typing will mean nothing to you, so forget about ` for() `
317317and anything else regarding types. Do your custom data-fetching function, add your custom body parsers and fetch away
318- using ` .fetch() ` , ` .get() ` , ` .post() ` , ` .put() ` , ` .patch() ` or ` .delete() ` .
318+ using ` .fetch() ` , ` .get() ` , ` head() ` , ` .post() ` , ` .put() ` , ` .patch() ` or ` .delete() ` .
0 commit comments