MCPcopy Create free account
hub / github.com/aws-samples/aws-appsync-resolver-samples / request

Function request

samples/http/forward.js:8–14  ·  view source on GitHub ↗
(ctx)

Source from the content-addressed store, hash-verified

6 * @returns the request
7 */
8export 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

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.70

Tested by

no test coverage detected