Skip to content
Serverless framework plugin to configure Binary responses in API Gateway
JavaScript
Branch: master
Clone or download
Latest commit 7e99399 Dec 19, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
index.test.js
package.json

README.md

serverless-apigwy-binary

Serverless framework plugin to configure Binary responses in API Gateway

Original code from codebox

Installation

Install to your Serverless project via npm

$ npm install --save serverless-apigwy-binary

Usage

Add the plugin to your serverless.yml

# serverless.yml

plugins:
  - serverless-apigwy-binary

Add the property contentHandling: CONVERT_TO_BINARY to an HTTP event

# serverless.yml

functions:
  hello:
    handler: handler.hello
    events:
      - http:
          integration: lambda
          path: hello
          method: get
          contentHandling: CONVERT_TO_BINARY
You can’t perform that action at this time.