-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add handleApiEvent, logApiResponse, op error types
The HTTP implemention now guarantees that all errors are reported via the HTTP response, not by returning an error to the Lambda framework. All HTTP requests are now logged by the Lambda function, in addition to any logging by the API Gateway. In the process, I learned why it's always good practice to return "error" instead of a custom error type: - "Go FAQ: Why is my nil error value not equal to nil?" https://go.dev/doc/faq#nil_error
- Loading branch information
Showing
3 changed files
with
204 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters