go-dos-protector, v1.1.1
Posted on

A library implementing denial-of-service attack (DoS attack) protection using the Proof-of-Work (PoW) algorithm.
Unification of client and middleware logic through a shared HTTP response status constant.
Change Log
The format is based on Keep a Changelog.
Changed
- Refactored
adapters:- Moved the
ExpectedResponseStatusToHEADRequestconstant to a shared location (thedosProtectorAdapterModelspackage) and renamed it toResponseStatusToHEADRequestto clarify its purpose. - Updated the
DoSProtectorMiddleware.ApplyTo()method to use the shared constant, ensuring consistency with client-side logic inHTTPClientWrapper. - Replaced hardcoded HTTP status codes in tests of both
DoSProtectorMiddlewareandHTTPClientWrapperwith the shared constant to improve maintainability.
- Moved the
Repository
Link: https://github.com/thewizardplusplus/go-dos-protector/tree/v1.1.1.
Content: code.
License: MIT.