HTTP

abstract

@vitejs/vitejs-http

方法及属性皆与 provider 实例一致

Constructor

  • constructor params:

    • url : string Connecting url default: 'http://localhost:8415'
    • timout : number Timeout(ms) default: 60000
    • Object
      • headers : object : Request Header Information
  • Example:


import httpProvider from "@vite/vitejs-http";
const http = new httpProvider("http://localhost:8080");

Provider Instance