You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/features/event-handler/rest.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -452,7 +452,7 @@ Middleware can add subtle improvements to request/response processing, but also
452
452
453
453
Keep the following in mind when authoring middleware for Event Handler:
454
454
455
-
***Call the next middleware.** If you are not returning early by returns a `Response` object
455
+
***Call the next middleware.** If you are not returning early by returning a `Response` object
456
456
or JSON object, always ensure you call the `next` function.
457
457
***Keep a lean scope.** Focus on a single task per middleware to ease composability and maintenance.
458
458
***Catch your own exceptions.** Catch and handle known exceptions to your logic, unless you want to raise HTTP Errors, or propagate specific exceptions to the client.
0 commit comments