( event: APIGatewayProxyEvent, responseStream: ResponseStream )
| 6 | export const binaryBase64Handler = streamifyResponse(myHandler) |
| 7 | |
| 8 | async 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…