MCPcopy Index your code
hub / github.com/CodeGenieApp/serverless-express / from

Method from

src/response.js:31–40  ·  view source on GitHub ↗
(res)

Source from the content-addressed store, hash-verified

29
30module.exports = class ServerlessResponse extends http.ServerResponse {
31 static from (res) {
32 const response = new ServerlessResponse(res)
33
34 response.statusCode = res.statusCode
35 response[HEADERS] = res.headers
36 response[BODY] = [Buffer.from(res.body)]
37 response.end()
38
39 return response
40 }
41
42 static body (res) {
43 return Buffer.concat(res[BODY])

Callers 10

makeLambdaEdgeEventFunction · 0.80
addDataFunction · 0.80
getEventBodyFunction · 0.80
listTodoItemsFunction · 0.80
dynamodb.tsFile · 0.80
integration.jsFile · 0.80
unit.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected