-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing features compared to httpbin.org #6
Comments
Ah yeah I see a whole truckload of cool features in official website version. Would be great to see this back ported. @mccutchen maybe a hack week project for me 🙂 |
@Integralist go for it! A pile of new endpoints have been added recently by @saurabh-hirani:
|
@Integralist - go-httpbin handler and testing code is very well thought out - thanks to @mccutchen |
I |
I'm going to call this one done, for now. Everything but |
```console # before: httpbingo lacks the "method" field but httpbin.org has it $ curl -s https://httpbingo.org/anything | jq .method 9:31PM null $ curl -s https://httpbin.org/anything | jq .method "GET" # after: httpbingo has the method field! $ curl -s http://0.0.0.0:8080/anything | jq .method "GET" ``` This was mentioned in #6, but then not listed in #91 - I took the highly technical testing approach of adding a test for `Method` anywhere in `handlers_test.go` that mentioned `Args`; do you desire more tests? fewer tests? - Anywhere else I should add this field that I didn't already? For what it's worth, I discovered this when working on upgrading the testing for our [httpsnippet library](https://github.com/readmeio/httpsnippet); I wanted to use `go-httpbin` but our tests expect the method field to be present in the responses
The following httpbin.org features (besides
/brotli
) are not present in the library:now.httpbin.org The current time, in a variety of formats.
(this probably will be more useful as a/now
url...)/uuid Returns UUID4.
/anything Returns request data, including method used.
/anything/:anything Returns request data, including the URL.
/base64/:value Decodes base64url-encoded string.
None of them are a big deal, just posting this for completion. If I have the time, I may implement some of them, though I doubt that will be very soon.
The text was updated successfully, but these errors were encountered: