-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
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
Issue #159 Added support for binary data in request and response #160
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
template/java8/model/src/main/java/com/openfaas/model/IResponse.java
Outdated
Show resolved
Hide resolved
template/java8/model/src/main/java/com/openfaas/model/Request.java
Outdated
Show resolved
Hide resolved
template/java8/model/src/main/java/com/openfaas/model/Request.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi thanks for this PR, it looks good far, but I have a few suggestions and sign-off is needed too.
Alex
template/java8/model/src/main/java/com/openfaas/model/Response.java
Outdated
Show resolved
Hide resolved
Please could you squash both commits into one? You should be able to get help from Google as this is a common practice. Failing that route, the community is active on Slack and always ready to help contributors. Thank you for your PR |
/msg: slack |
-- |
template/java8/entrypoint/src/main/java/com/openfaas/entrypoint/App.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor comments for code quality.
@erlendv please take a look at the comments and squash down your commits into one, when you are ready. This is a good change so I would like to get it in soon. |
Sorry for late feedback @alexellis and @kameshchauhan. Im on vacation so a bit online/offline. I will fix shortly! |
Thank you @erlendv - please could you sign-off your commits? If you need help, please ask on Slack. |
Perhaps we can squash the 5 commits with |
Signed-off-by: Erlend Valle <erlend@dx.no>
I think I (finally) managed to squash the commits and have the one signed off @alexellis. All requested changes have been implemented. |
@alexellis I think til PR is all good now? All requested changes have been done, all commits squashed and the one commit is signed off. |
Adds support for binary data in requests and responses. #159
Description
Added IResponse.setBody(byte[]), IResponse.getBodyData() and implemented them in Response
Added IRequest.getInputStream() and implemented it in Request
Changed entrypoint App to use these new methods.
Motivation and Context
#159
Which issue(s) this PR fixes
Fixes #159
How Has This Been Tested?
Added tests to RequestTest and ResponseTest. Verified that my original problem described in #159 is fixed.
Types of changes
Checklist:
git commit -s