cloudwan / gohan

Gohan is an API Gateway Server written by Go that makes it easy for developers to create and maintain REST-style API
http://www.slideshare.net/natiueno/gohan-61170476
Other
109 stars 44 forks source link

Extracted GetHttpRequestBody to goplugin::Util #626

Closed zimnx closed 6 years ago

zimnx commented 6 years ago

Also changed ReadJSON method to not consume request body. Duplicated buffer will be stored under request to allow multiple reads from it

zimnx commented 6 years ago

I don't need it anymore. This would also affect design dependency. Gohan tries to separate HTTP server from extensions by handling HTTP stuff on his own way. In this PR we would have multiple request body handlers. Having only single one is IMO better