(method: string, signal?: AbortSignal)
| 157 | } |
| 158 | |
| 159 | async requestGet<T>(method: string, signal?: AbortSignal): Promise<T> { |
| 160 | const res = await this.client.request({ |
| 161 | url: this.getMethodUrl(method), |
| 162 | method: 'GET', |
| 163 | headers: { |
| 164 | 'Content-Type': 'application/json', |
| 165 | ...this.httpOptions.headers, |
| 166 | }, |
| 167 | responseType: 'json', |
| 168 | signal, |
| 169 | }); |
| 170 | return res.data as T; |
| 171 | } |
| 172 | |
| 173 | async requestStreamingPost<T>( |
| 174 | method: string, |
nothing calls this directly
no test coverage detected