( url, options = {} )
| 196 | } |
| 197 | |
| 198 | export async function getText ( url, options = {} ) { |
| 199 | const { data } = await request( url, { |
| 200 | ...options, |
| 201 | method: 'GET', |
| 202 | responseType: 'text' |
| 203 | } ) |
| 204 | |
| 205 | return data |
| 206 | } |
| 207 | |
| 208 | export async function postJson ( url, data, options = {} ) { |
| 209 | const { data: responseData } = await request( url, { |
no test coverage detected