Skip to content
Snippets Groups Projects
Select Git revision
  • fbef31db8984485b9856721f7fac8fb8f1000aa3
  • master default protected
  • v1.23.2
  • v1.23.1
  • v1.23.0
  • v1.22.0
  • v1.21.1
  • v1.21.0
  • v1.20.3
  • v1.20.2
  • v1.20.1
  • v1.20.0
  • v1.19.4
  • v1.19.3
  • v1.19.2
  • v1.19.1
  • v1.19.0
  • v1.18.2
  • v1.18.1
  • v1.18.0
  • v1.17.0
  • v1.16.1
22 results

job-queues

  • 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