Skip to content

Commit b31184e

Browse files
committed
Doc: Added missing ctx.Drop() to whats_new.md
1 parent a42ddc1 commit b31184e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/whats_new.md

+1
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ testConfig := fiber.TestConfig{
342342
- **ViewBind**: Binds data to a view, replacing the old `Bind` method.
343343
- **CBOR**: Introducing [CBOR](https://cbor.io/) binary encoding format for both request & response body. CBOR is a binary data serialization format which is both compact and efficient, making it ideal for use in web applications.
344344
- **End**: Similar to Express.js, immediately flushes the current response and closes the underlying connection.
345+
- **Drop**: Terminates the client connection silently without sending any HTTP headers or response body. This can be used for scenarios where you want to block certain requests without notifying the client, such as mitigating DDoS attacks or protecting sensitive endpoints from unauthorized access.
345346

346347
### Removed Methods
347348

0 commit comments

Comments
 (0)