1.0.0 • Published 5 years ago

mpx-fetch v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

mpx-fetch

a http request lib for mpx framework.

Usage

import mpx from 'mpx'
import fetch from 'mpx-fetch'

mpx.use(fetch)

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