frapi/frapi — pull request #145 by dshafik (2012-05-08 08:53:21+00:00)
Title: Re-write content negotiation to be more robust

- **All** legacy behavior is correctly observed
- Extensions are now converted to mimetypes and prepended to `HTTP_ACCEPT`
- Always respond with the requested mimetype (e.g. `text/vnd.myapp.v1+json`) regardless of output formatter used
- All output formats are chosen based on `HTTP_ACCEPT` *only* (or config default)
- Fixed an issue in the handling of similar mimetypes with placeholders
- Rename setFormat to setOutputFormat to match setInputFormat
- Ensure that the mimetypes.xml is *optional* and that previous behavior is the default
- **Fully unit test both the Accept and extension-based content-negotiation**

[![Build Status](https://secure.travis-ci.org/dshafik/frapi.png?branch=content-negotiation-overhaul-ci-merge)](http://travis-ci.org/dshafik/frapi)