Lambda and API with proxy integration

In this recipe, we will configure our API to act as a proxy for a Lambda. We will create a new Lambda function that extracts the required data from the incoming request. While using proxy integration, Lambda needs to implement the low-level RequestStreamHandler that gives us access to the InputStream and OutputStream