From 8f00efb7aaa0d3c4f15bdaf7332a257b3727779b Mon Sep 17 00:00:00 2001 From: RW Date: Mon, 16 Dec 2024 10:24:24 +0100 Subject: [PATCH] Update docs/client/hooks.md --- docs/client/hooks.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/client/hooks.md b/docs/client/hooks.md index d8b7965b80..3e78166437 100644 --- a/docs/client/hooks.md +++ b/docs/client/hooks.md @@ -96,7 +96,9 @@ Fiber provides some built-in request hooks: - **parserRequestHeader**: Sets request headers, cookies, content type, referer, and user agent based on client and request properties. - **parserRequestBody**: Automatically serializes the request body (JSON, XML, form, file uploads, etc.). +:::info If any request hook returns an error, the request is interrupted and the error is returned immediately. +::: **Example with Multiple Hooks:**