ahmetb / go-httpbin

http://httpbin.org endpoints for your Go tests
https://godoc.org/github.com/ahmetalpbalkan/go-httpbin
Apache License 2.0
124 stars 26 forks source link

Introduce support for POST method #19

Closed lvrach closed 6 years ago

lvrach commented 6 years ago

Hello,

I try to replace httpbin.org with go-httpbin, running locally. However some things were missing and I decided to implement them. So this PR includes the following changes:

  1. /status now support any method (not only GET, HEAD), similar to httpbin.org
  2. Partially implement /post, with everything GET has, plus data and JSON. Files and Form are missing.
ahmetb commented 6 years ago

Thanks!

ahmetb commented 6 years ago

Do you mind sending an update to the README.md as well?