RubyGems Navigation menu

rack-post-body-to-params 0.1.8

A Rack middleware that parses the POST or PUT body for JSON or XML content to a Hash and puts it into the rack.request.form_hash. Most frameworks get the params hash from there. Uses ActiveSupport and the respective parsers for parsing. So you can set it up to use Nokogiri and YajL. Useful for example when writing JSON and XML API apps with Sinatra or Padrino.

Versions:

  1. 0.1.8 - September 12, 2013 (9.5 KB)
  2. 0.1.7 - February 5, 2013 (9 KB)
  3. 0.1.6 - February 4, 2013 (9 KB)
  4. 0.1.5 - February 2, 2012 (8.5 KB)
  5. 0.1.4 - February 1, 2012 (8.5 KB)
Show all versions (9 total)

Runtime Dependencies:

Development Dependencies:

Authors:

  • Niko Dittmann

Owners:

Da8e9d88cdb88c30c16f0cded6f9cdc7

Total downloads 12,895

For this version 2,106

Show all versions (9 total)

Required Ruby Version: None

Licenses:

N/A

Gemfile:
gem 'rack-post-body-to-params', '~> 0.1.8' = Copy to clipboard Copied!

install:
gem install rack-post-body-to-params = Copy to clipboard Copied!

Links: