PHP only decodes data for POST requests. This commit adds a similar
support (using the same mechanisms, according to the PHP docs) for other
request methods. Currently, it is limited to PUT, PATCH and DELETE, the
request methods that may have a body according to the HTTP spec.