-
Notifications
You must be signed in to change notification settings - Fork 407
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
refactor(event-handler): Add ResponseBuilder and more docs #412
Conversation
Change: - Add new ResponseBuilder to replace the Tuple[Route, Response] - Refactor code to be easier to maintain
@heitorlessa did some refactoring of the |
Codecov Report
@@ Coverage Diff @@
## develop #412 +/- ##
========================================
Coverage 99.89% 99.89%
========================================
Files 101 101
Lines 3967 3976 +9
Branches 198 198
========================================
+ Hits 3963 3972 +9
Misses 1 1
Partials 3 3
Continue to review full report at Codecov.
|
Response( | ||
status_code=404, | ||
content_type="application/json", | ||
body=json.dumps({"message": f"No route found for '{method}.{path}'"}), |
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.
Note to self: Pull the entire code to check whether we're not making customers vulnerable to data enumeration attacks via HTTP status code
@heitorlessa do you want me to add anything else to this? |
Issue #, if available:
Description of changes:
Change:
Checklist
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.