Skip to content

[HttpFoundation] Add Request::isMethodIdempotent method #19322

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Jul 9, 2016

Q A
Branch? master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR n/a

Addd a new method in the spirit of isMethodSafe to know if the current method is idempotent according to RFCs.

@dunglas
Copy link
Member Author

dunglas commented Jul 9, 2016

AppVeyor failures unrelated.

self::METHOD_DELETE,
self::METHOD_TRACE,
self::METHOD_OPTIONS,
self::METHOD_PURGE,
Copy link
Member

Choose a reason for hiding this comment

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

I would use the strings here directly as done for the isMethodSafe method.

Choose a reason for hiding this comment

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

Hi, why use strings instead of constants here?

@dunglas
Copy link
Member Author

dunglas commented Jul 10, 2016

Comments fixed.

@fabpot
Copy link
Member

fabpot commented Jul 10, 2016

Thank you @dunglas.

@fabpot fabpot closed this in 0fc2b62 Jul 10, 2016
@dunglas dunglas deleted the idempotent branch July 10, 2016 09:54
@fabpot fabpot mentioned this pull request Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants