MCPcopy Create free account
hub / github.com/CodeGenieApp/serverless-express / getRequestResponse

Function getRequestResponse

src/transport.js:87–106  ·  view source on GitHub ↗
({
  method,
  headers,
  body,
  remoteAddress,
  path
})

Source from the content-addressed store, hash-verified

85}
86
87async function getRequestResponse ({
88 method,
89 headers,
90 body,
91 remoteAddress,
92 path
93}) {
94 const request = new ServerlessRequest({
95 method,
96 headers,
97 body,
98 remoteAddress,
99 url: path
100 })
101 await waitForStreamComplete(request)
102
103 const response = new ServerlessResponse(request)
104
105 return { request, response }
106}
107
108function markHttpRequestAsCompleted (request) {
109 request.complete = true

Callers 1

Calls 1

waitForStreamCompleteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…