bazooka-ci / bazooka

Continuous Integration and Continuous Deployment Server
http://docs.bazooka-ci.io/
MIT License
60 stars 5 forks source link

Rework the server's handler wrapper to make it more flexible #219

Closed jawher closed 9 years ago

jawher commented 9 years ago

instead of taking a params map and a bodyFunc, the wrapped functions now accept a request struct which embeds the raw request and response and the mux vars. The struct also defines a parseBody function whiuch parses a json body and a rawBody function which returns the request's raw payload.