Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

@mpxjs/fetch

2.3.9 • Public • Published

mpx-fetch

a http request lib for mpx framework.

Usage

import mpx from '@mpxjs/core'
import fetch from '@mpxjs/fetch'
 
mpx.use(fetch)
 
mpx.xfetch.fetch({
  url,
  data: {},
  header: {'content-type': 'application/x-www-form-urlencoded'},
  method: 'GET'
}).then(res => {
  console.log(res)
})

Keywords

none

Install

npm i @mpxjs/fetch

DownloadsWeekly Downloads

7

Version

2.3.9

License

ISC

Unpacked Size

23.4 kB

Total Files

11

Last publish

Collaborators

  • avatar
  • avatar
  • avatar