Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 362 Bytes

File metadata and controls

7 lines (4 loc) · 362 Bytes

Regex Timeout Middleware

This repository middleware for ASP.NET Core to return a 408 Request Timeout response for a regex timeout. This helps add stability to web applications by stopping unexpectedly lengthy regex operations. By returning a 4xx status code, rather than 5xx, we can prevent timeout issues surfacing as server errors.

License

MIT license