1. 03 Apr, 2020 1 commit
    • Hector Sanjuan's avatar
      Http API: introduced HandledMethods option. · 2fbebbec
      Hector Sanjuan authored
      This Handler option is used it to allow/deny request by their method.
      
      The API is an RPC API so it normally should only work with PUT, but we also
      use a read-only, GET-based partial API that runs with the gateway.
      
      This commit makes the actual allowed (or handled) methods configurable.
      
      A test is added, and test facilities improved to be able to set/modify
      this option.
      2fbebbec
  2. 25 May, 2019 1 commit
  3. 13 May, 2019 1 commit
  4. 13 Dec, 2018 4 commits
  5. 26 Oct, 2018 2 commits
  6. 25 Oct, 2018 1 commit
  7. 31 Jul, 2018 1 commit
  8. 16 Feb, 2018 1 commit
    • Steven Allen's avatar
      cleaner command completion/calling · 294e20f6
      Steven Allen authored
      **Returning errors/calling:**
      
      Instead of having a dance where we:
        * Close the response emitter immediately if the command succeeds.
        * Return an error, call SetError, and then close the response emitter if it
          fails.
      
      Just set the error from within the `Call` command and always close the response
      emitter.
      
      **Doner**
      
      Get rid of the Done channel/doner interface from the response emitter. We close
      the response emitter after finishing the Call *anyways* so this channel isn't
      necessary (anymore, at least).
      294e20f6
  9. 19 Jan, 2018 1 commit
    • Steven Allen's avatar
      Don't handle timeouts in Execute. · 75fbbeaf
      Steven Allen authored
      Instead, handle it at the boundaries (in ServeHTTP and the CLI's Run function).
      This ensures that we actually *wait* to finish writing everything before
      canceling the context.
      75fbbeaf
  10. 08 Jan, 2018 1 commit
  11. 22 Dec, 2017 1 commit
  12. 21 Dec, 2017 1 commit
  13. 13 Dec, 2017 2 commits
  14. 12 Dec, 2017 1 commit
  15. 07 Dec, 2017 1 commit
  16. 22 Nov, 2017 1 commit
  17. 08 Jun, 2017 2 commits
  18. 20 Apr, 2017 1 commit
  19. 22 Mar, 2017 1 commit
  20. 21 Mar, 2017 1 commit
  21. 13 Mar, 2017 3 commits
  22. 16 Feb, 2017 1 commit
    • Jan Winkelmann's avatar
      getting there... · af6aa2e8
      Jan Winkelmann authored
      - made Response.Request() return Request not *Request
      - added ResponseEmitter.Tee()
      - added a wrapper that wraps a Response and provides an oldcmds.Response
      af6aa2e8
  23. 13 Feb, 2017 1 commit
  24. 01 Feb, 2017 1 commit
  25. 28 Jan, 2017 2 commits
  26. 07 Nov, 2016 1 commit
  27. 18 Oct, 2016 1 commit
  28. 06 Oct, 2016 1 commit
  29. 26 Aug, 2016 1 commit
  30. 24 Jun, 2016 1 commit
  31. 15 Jun, 2016 1 commit