Skip to content

Commit 7ba99aa

Browse files
svozzasdangol
andauthored
Update docs/features/event-handler/rest.md
Co-authored-by: Swopnil Dangol <[email protected]>
1 parent ed95969 commit 7ba99aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/features/event-handler/rest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ Middleware can add subtle improvements to request/response processing, but also
452452

453453
Keep the following in mind when authoring middleware for Event Handler:
454454

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
456456
or JSON object, always ensure you call the `next` function.
457457
* **Keep a lean scope.** Focus on a single task per middleware to ease composability and maintenance.
458458
* **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

Comments
 (0)