@jswork/next-fetch-with-content-type
v1.0.10
Published
Request middleware for contentType.
Downloads
12
Maintainers
Readme
next-fetch-with-content-type
Request middleware for contentType.
installation
npm install -S @jswork/next-fetch-with-content-type
usage
import '@jswork/next-fetch-with-content-type';
const betterFetch = nx.fetchWithContentType(fetch);
betterFetch('https://api.github.com/users/afeiship', { contentType: 'urlencoded' }).then(
(res) => {
// console.log(res);
}
);
license
Code released under the MIT license.