Lambda Plugin - Set extra options for response


#1

When using the Lambda plugin it would be great if we could set some custom response status, headers etc too.

AWS API gateway has the ability to set the status code, body of the response and additional headers. Given this would be a breaking change to the response output I would suggest that if we do this then we possibly have a config in the plugin? Another option would be to check the output, check its JSON and see if there are certain fields set, but I guess this could be more error prone.

What are people’s thoughts? Looking through the code this doesn’t look too difficult, although I’ve never written anything in LUA before :wink:


#2

Pretty slow response :D, but I had the same need, and I got this feature merged a couple weeks ago.

https://github.com/Kong/kong/pull/3427

It should be shipping with Kong 1.0 later this year.