(request)
| 50 | |
| 51 | const link = new StandardRPCLink({ |
| 52 | async call(request) { |
| 53 | const result = await handler.handle({ ...request, body: () => Promise.resolve(request.body) }, { |
| 54 | context: {}, |
| 55 | }) |
| 56 | |
| 57 | const response = result.response! |
| 58 | |
| 59 | return { ...response, body: () => Promise.resolve(response.body) } |
| 60 | }, |
| 61 | }, { |
| 62 | url: 'http://localhost', |
| 63 | clientInterceptors: [interceptor], |