Skip to content

HTTP通信モジュール

License

Notifications You must be signed in to change notification settings

dependahub/http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stability Node.js Version XO code style

http

HTTP通信モジュール

現在はfetchのラッパーとして作成しています。

example

import {http} from '@dependahub/http';

http.defaults.baseUrl = 'url';
http.defaults.headers = {};

const reseponse = await http.get('url', {
  headers: {},
  query: {},
});

const reseponse = await http.post('url', {
  headers: {},
  query: {},
  body: {},
});

const reseponse = await http.put('url', {
  headers: {},
  query: {},
  body: {},
});

const reseponse = await http.delete('url', {
  headers: {},
  query: {},
});

const {status, data} = reseponse;

About

HTTP通信モジュール

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published