fictivekin/Resty.php — pull request #1 by lukestokes (2012-06-01 03:48:44+00:00)
Title: As discussed at tek12, I added some things to make it more hypermedia friendly. I'm a github newb (this is actually my first attempt), so go easy on me. :)

* Adding a supports_patch option with a supportsPatch configure method
so Resty can send the X-HTTP-Method-Override header if needed.
* Adding a getLink method which will parse the last response headers for
a web links according to the Web Linking rfc5988.
* Adding patch support.
* Modified metaToHeaders to support headers with multiple entries of the
same key (such as web links)
* Added support for a max_redirects option (with DEFAULT_MAX_REDIRECTS
being 0) because any REST API that uses a location header with a 201
but also requires some custom auth headers was failing.
* Replaced "…" characters with "..." since they look more pretty in a
terminal.
* When determing content type, instesd of just matching against known
types, it also does a pattern match against "+json" and "+xml" to
support custom vendor media types.