Closed donatj closed 6 years ago
@stevenrombauts I slept on it - and I have decided I'd rather handle varying by method with a new Response object.
The reasoning being in the future I'd like to be able to add other ways of varying responses as well. For example via GET parameters – which would resolve #6.
Adding a new optional method parameter every time I decide I want to vary on something isn't ideal.
Let me know if you have any objections, otherwise I will likely be merging and tagging this tonight.
I've kept your commits to acknowledge your contribution for which I am still quite grateful, and did kick the entire thing off ;)
@donatj Nice, I like this approach much better, makes for cleaner code and adding more types of Response objects this way will make it much easier to extend in the future. Thanks and I'm sorry I gave you so much work today ;-)
@stevenrombauts Haha, no worries man - I'd been putting it off for WAY WAY too long.
Resolves #3 Replaces #8
Adds a
ResponseByMethod
response object that allows you to vary the response by given method.