Skip to content

addHttpMethod override existing http standard methods #6284

@jean-michelet

Description

@jean-michelet

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

While reading ticket #6283 and checking the source code, I realized that addHttpMethod override existing methods, including standard http methods.

Surprisingly, the name of the function does not reflect its implementation, nor does the documentation.

I wonder if we should do something about this.

Here are a few options:

  1. At a minimum, document this behavior.
  2. Disable the override behavior in the next major and add an alternative method (e.g., setHttpMethod or overrideHttpMethod) or option (e.g. override: true).
  3. Perhaps a combination of both.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions