(url: string, data?: any, config?: FullRequestConfig)
| 301 | |
| 302 | // POST request |
| 303 | public post<T = any>(url: string, data?: any, config?: FullRequestConfig): Promise<T> { |
| 304 | return this.request({ ...config, method: 'POST', url, data }) |
| 305 | } |
| 306 | |
| 307 | public async fetchStream(url: string, data?: any, controller?: AbortController): Promise<any> { |
| 308 | const token = wsCache.get('user.token') |