evantahler/actionhero — pull request #318 by evantahler (2014-02-16 20:04:42+00:00)
Title: param updates

- Does not strip params from `connections.params` until the actionProcessor
- will ensure that **all** posted params are available in preProcessor middleware
- 'dry' up code to only have one place where params are stripped

- allows for more complex JSON payload parsing in web server.
- you can now post arrays as payload bodies with our without the header-type `application/json`

Examples:

- `curl -X POST -d '[{"email":"john.doe@sendgrid.com","timestamp":1337197600,"smtp-id":"4FB4041F.6080505@sendgrid.com","event":"processed"},{"email":"john.doe@sendgrid.com","timestamp":1337966815,"smtp-id":"4FBFC0DD.5040601@sendgrid.com","category":"newuser","event":"clicked"},{"email":"john.doe@sendgrid.com","timestamp":1337969592,"smtp-id":"20120525181309.C1A9B40405B3@Example-Mac.local","event":"processed"}]' http://localhost:8080/api/sendgrid`
- `curl -X POST -H "Content-Type: application/json" -d '[{"email":"john.doe@sendgrid.com","timestamp":1337197600,"smtp-id":"4FB4041F.6080505@sendgrid.com","event":"processed"},{"email":"john.doe@sendgrid.com","timestamp":1337966815,"smtp-id":"4FBFC0DD.5040601@sendgrid.com","category":"newuser","event":"clicked"},{"email":"john.doe@sendgrid.com","timestamp":1337969592,"smtp-id":"20120525181309.C1A9B40405B3@Example-Mac.local","event":"processed"}]' http://localhost:8080/api/sendgrid`