Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@zxsz/http

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zxsz/http

通用http方法, 基于axios

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

sz-http

基于axios扩展的前端http请求库,具有以下特点

pnpm add @zxsz/http

按需引用

import { set as setConfig, httpGet } from 'sz-http';

// 设置全局配置
setConfig({
  // config
});

httpGet('http://example');

API说明

httpGet(url [,params [,options]]) 发送get请求
httpDelete(url [,params [,options]]) 发送delete请求
httpPut(url [,params [,options]]) 发送put请求
httpPost(url [,params [,options]]) 发送post请求
httpPatch(url [,params [,options]]) 发送patch请求

FAQs

Package last updated on 13 Feb 2025

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