Skip to content

docs(routing): clarify Any registers handler for any HTTP method#427

Merged
aldas merged 1 commit into
labstack:masterfrom
hyorimitsu:fix/any-docs-outdated
Jul 16, 2026
Merged

docs(routing): clarify Any registers handler for any HTTP method#427
aldas merged 1 commit into
labstack:masterfrom
hyorimitsu:fix/any-docs-outdated

Conversation

@hyorimitsu

Copy link
Copy Markdown
Contributor

Summary

Related to labstack/echo#3044.

Clarifies the routing documentation around e.Any(). The previous wording ("registers a handler for all supported methods") was inaccurate — Any registers a handler for any HTTP method, including methods not in Echo's predefined list.

Changes

  • Reword the Any description to say it registers a handler for any HTTP method, including ones not in Echo's predefined list.
  • Add a note clarifying that a method-specific route registered for the same path takes precedence over the Any route.
  • Apply the same updates across all translations (en, es, ja, pt-br, zh-cn).

Notes

Documentation only — no code changes.

@aldas aldas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aldas
aldas merged commit cd61276 into labstack:master Jul 16, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants