🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@sunmi/request

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sunmi/request

wrapped fetch method

npmnpm
Version
1.0.1-beta.0
Version published
Weekly downloads
14
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

fetch

fetch的快捷封装

roadmap

  • 包含fetch的所有功能
    • fetch()
  • 提供类似Axios的使用api
    • fetch.create(config)
    • fetch.get(url[ ,config])
    • fetch.post(url, data[ ,config])
    • fetch.delete(url[ ,config])
    • fetch.put(url, data[ ,config])
    • fetch.head(url[ ,config])
    • fetch.patch(url[, data[, config]])
  • 支持请求超时处理
  • 提供修改请求数据的钩子
  • 提供修改响应数据的钩子
  • [] 提供处理请求错误code的钩子
  • 提供请求拦截器
  • 提供响应拦截器

使用



Keywords

fetch

FAQs

Package last updated on 03 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts