feat: use http.MethodXXX constants instead of string literals in generated code by imsugeno · Pull Request #2294 · oapi-codegen/oapi-codegen

added 2 commits

March 14, 2026 21:38
Add httpMethodConstant template helper that converts HTTP method strings
(e.g. "GET") to net/http constants (e.g. http.MethodGet) and apply it
to the client, gorilla, and stdhttp templates.

Refs oapi-codegen#659
Run make generate to update all generated files with the new
http.MethodXXX constants in place of string literals.