serverless-plugin-custom-binary
This is a plugin for Serverless that sets up BinaryMediaTypes
and ContentHandling
to enable support for Binary Payloads in API Gateway.Usage
service: my-service
plugins:
- serverless-plugin-custom-binary
custom:
apiGateway:
binaryMediaTypes:
- 'application/json'
functions:
helloword:
handler: handler.hello
events:
- http:
path: /hello
method: GET
contentHandling: CONVERT_TO_BINARY