nategood/httpful — Issue #11: Add ability for custom serialize payload hook
Author: nategood
Created: 2012-02-15 23:08:20+00:00
State: open

Right now by default the library will take a data structure that is to be used for the payload of a request and do it's best to turn it into a well structured serialized string. (e.g. calling `json_encode` on the payload when the Content-Type of the request is `application/json`).

A user may want to define their own serialization method in certain use cases (e.g. the user was using XML-RPC and didn't want to have to build long winded associative arrays for every request).