fictivekin/Resty.php — pull request #4 by lukestokes (2012-07-17 05:19:10+00:00)
Title: web linking (hypermedia) support and PATCH

* 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.