Method
transformResponse
(res: {
url: any;
method: any;
statusCode: any;
statusMessage: any;
headers: any;
})
Source from the content-addressed store, hash-verified
| 64 | } |
| 65 | |
| 66 | private async transformResponse(res: { |
| 67 | url: any; |
| 68 | method: any; |
| 69 | statusCode: any; |
| 70 | statusMessage: any; |
| 71 | headers: any; |
| 72 | }) { |
| 73 | const { |
| 74 | url, method, statusCode, statusMessage, headers, |
| 75 | } = res |
| 76 | return { |
| 77 | url, |
| 78 | method, |
| 79 | statusCode, |
| 80 | statusMessage, |
| 81 | headers, |
| 82 | body: res, |
| 83 | } |
| 84 | } |
| 85 | } |
Tested by
no test coverage detected