Skip to content

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_PUT,
self::METHOD_DELETE,
self::METHOD_TRACE,
self::METHOD_OPTIONS,
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