Unity::Middleware
Unity's built-in http library does not always return response headers or status
codes. If the X-Unity-Response
request header is set, this middleware wraps
the response status code, headers and body inside a json object in the response
body. It also sets the response status code to 200, as unity cannot handle
non-200 responses properly.
Installation
Add this line to your application's Gemfile:
gem 'unity-middleware'
And then execute:
$ bundle
Or install it yourself as:
$ gem install unity-middleware
Usage
TODO: Write usage instructions here
Contributing
- Fork it ( https://github.com/pocket-playlab/unity-middleware/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request