We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a new streamProxy(InputStream, OutputStream, Context) method to the LambdaContainerHandler object.
streamProxy(InputStream, OutputStream, Context)
LambdaContainerHandler
Simplifies the task of writing Lambda RequestStreamHandler` classes from:
@Override public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context) throws IOException { AwsProxyRequest request = LambdaContainerHandler.getObjectMapper().readValue(inputStream, AwsProxyRequest.class); AwsProxyResponse resp = handler.proxy(request, context); LambdaContainerHandler.getObjectMapper().writeValue(outputStream, resp); outputStream.close(); }
to:
@Override public void handleRequest(InputStream inputStream, OutputStream outputStream, Context context) throws IOException { handler.streamProxy(inputStream, outputStream, context); }
The text was updated successfully, but these errors were encountered:
Added method to simplify the implementation of Lambda's . This addres…
361ae5a
…ses #118.
Added proxyStream method. Leaving this open until docs is updated.
proxyStream
Sorry, something went wrong.
Updated samples to use a static block to declared the handler (#109) …
2b962c8
…and moved them all to the new streamProxy method (#118).
I've committed the updated docs in the next-release branch of the wiki. Closing this issue.
next-release
sapessi
No branches or pull requests
Add a new
streamProxy(InputStream, OutputStream, Context)
method to theLambdaContainerHandler
object.Scenario
Simplifies the task of writing Lambda RequestStreamHandler` classes from:
to:
The text was updated successfully, but these errors were encountered: