Skip to content
Snippets Groups Projects
Select Git revision
  • 1223a7364acfd61265fe6d3e74f3b58518d63064
  • main default protected
  • drip-server-timing
  • compress-middleware
  • v2.11.0
  • v2.10.0
  • v2.9.2
  • v2.9.1
  • v2.9.0
  • v2.8.0
  • v2.7.0
  • v2.6.0
  • v2.5.6
  • v2.5.5
  • v2.5.4
  • v2.5.3
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.2
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.2
24 results

httpbin

  • Clone with SSH
  • Clone with HTTPS
  • user avatar
    Bill Mill authored and GitHub committed
    ```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
    1223a736
    History
    Name Last commit Last update
    ..