(ctx)
| 6 | * @returns the request |
| 7 | */ |
| 8 | export function request(ctx) { |
| 9 | return fetch(ctx.args.path, { |
| 10 | // headers: util.http.copyHeaders(ctx.request.headers), |
| 11 | body: ctx.args.body, // can include in the body |
| 12 | query: ctx.args.query, // or in the query string |
| 13 | }); |
| 14 | } |
| 15 | |
| 16 | /** |
| 17 | * Process the HTTP response |