claudiajs / claudia-api-builder

Use AWS API Gateway as if it were a lightweight JavaScript web server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add options to `ApiResponse`

gilles-crealp opened this issue · comments

For the moment, it's not possible to pass contentHandling: 'CONVERT_TO_BINARY' to a new ApiResponse.

It could be a good option to have the possibility to add some configuration to a new ApiResponse.

module.exports.ApiResponse = function (response, headers, code) {
'use strict';
this.response = response;
this.headers = headers;
this.code = code;
};

please use the gitter chat channel for this kind of discussions, we use github issues only for bugs. https://gitter.im/claudiajs/claudia