From 313cd41692c19e7e681e0f8953c65c10095e7830 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:09:48 +0000 Subject: [PATCH 1/2] Initial plan From 4d2c8528ce17299509181c75619019b22dcc581b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:23:30 +0000 Subject: [PATCH 2/2] Add documentation for method enum indexing invariant Document that method enum constants start at 0 and increment by 1, making them suitable for use as indexes into a compact array. Co-authored-by: vinniefalco <1503976+vinniefalco@users.noreply.github.com> --- include/boost/http_proto/method.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/boost/http_proto/method.hpp b/include/boost/http_proto/method.hpp index 399a2e3e..da4016b8 100644 --- a/include/boost/http_proto/method.hpp +++ b/include/boost/http_proto/method.hpp @@ -21,6 +21,13 @@ namespace http_proto { Each item corresponds to a particular method string used in HTTP request messages. + + @par Enumeration Constants + + The enumeration constants are guaranteed to begin at 0 for the + first constant, with each subsequent constant incremented by + exactly one. This makes the constants suitable for use as + indexes into a compact array. */ enum class method : char {