(
url: string,
body: Record<string, any>,
headers: Record<string, string> = {},
retry?: RetryConfig
)
| 134 | } |
| 135 | |
| 136 | async post<T = any>( |
| 137 | url: string, |
| 138 | body: Record<string, any>, |
| 139 | headers: Record<string, string> = {}, |
| 140 | retry?: RetryConfig |
| 141 | ): Promise<HttpResponse<T>> { |
| 142 | return makeRequestWithRetry<T>(url, { |
| 143 | method: 'POST', |
| 144 | headers: { |
| 145 | 'Content-Type': 'application/json', |
| 146 | ...headers |
| 147 | }, |
| 148 | body, |
| 149 | retry: retry || this.defaultRetryConfig |
| 150 | }); |
| 151 | } |
| 152 | |
| 153 | async put<T = any>( |
| 154 | url: string, |
no test coverage detected