MCPcopy Create free account
hub / github.com/astuyve/lambda-stream / myHandler

Function myHandler

examples/src/binary-base64-handler.ts:8–16  ·  view source on GitHub ↗
(
  event: APIGatewayProxyEvent,
  responseStream: ResponseStream
)

Source from the content-addressed store, hash-verified

6export const binaryBase64Handler = streamifyResponse(myHandler)
7
8async function myHandler(
9 event: APIGatewayProxyEvent,
10 responseStream: ResponseStream
11): Promise<void> {
12 const source = Readable.from(Buffer.from('hello world'))
13 responseStream.setContentType('binary/octet-stream')
14 responseStream.setIsBase64Encoded(true)
15 await pipeline(source, responseStream)
16}

Callers

nothing calls this directly

Calls 2

setContentTypeMethod · 0.80
setIsBase64EncodedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…