World Conquest Chronicles

World Conquest Chronicles

go-dos-protector, v1.1.1

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 ExpectedResponseStatusToHEADRequest constant to a shared location (the dosProtectorAdapterModels package) and renamed it to ResponseStatusToHEADRequest to clarify its purpose.
    • Updated the DoSProtectorMiddleware.ApplyTo() method to use the shared constant, ensuring consistency with client-side logic in HTTPClientWrapper.
    • Replaced hardcoded HTTP status codes in tests of both DoSProtectorMiddleware and HTTPClientWrapper with the shared constant to improve maintainability.

Repository

Link: https://github.com/thewizardplusplus/go-dos-protector/tree/v1.1.1.

Content: code.

License: MIT.