5 ms·
Just from looking over the source for a moment, I had a few questions/points: * Why doesn't the put() method have a parameter for the payload? Sending a PUT wi
by xrstf 12y ago
Just from looking over the source for a moment, I had a few questions/points:
* Why doesn't the put() method have a parameter for the payload? Sending a PUT with headers only is .... uncommon to me.
* How can I use this to test my JSON-based API? The $postData on post() requires an array, so I cannot put in my pre-encoded JSON payload. Maybe just remove the typehint?
* prettyPrintJson() could use a version-switch and use JSON_PRETTY_PRINT in PHP 5.4+ -- results should look similar.
I'll keep this in mind, could come in handy when testing the next API ;-)