(id: string, response: Response)
| 55 | } |
| 56 | |
| 57 | async function createResponseMessage(id: string, response: Response): Promise<ResponseMessage> { |
| 58 | const { headers, status } = response; |
| 59 | |
| 60 | const body = await response.text(); |
| 61 | |
| 62 | return { |
| 63 | type: "response", |
| 64 | id, |
| 65 | headers: Object.fromEntries(headers), |
| 66 | status, |
| 67 | body, |
| 68 | }; |
| 69 | } |
| 70 | |
| 71 | export class YaltApiClient { |
| 72 | constructor( |
no test coverage detected
searching dependent graphs…