- 10 Aug, 2021 1 commit
-
-
tavit ohanian authored
-
- 20 Jun, 2021 1 commit
-
-
tavit ohanian authored
-
- 29 Apr, 2020 4 commits
-
-
Sawood Alam authored
-
Sawood Alam authored
-
Hector Sanjuan authored
(when GET is not allowed).
-
Hector Sanjuan authored
* Staticcheck fixes This fixes all staticcheck warnings for this library.
-
- 06 Apr, 2020 1 commit
-
-
Hector Sanjuan authored
Addresses browsers being able to POST without control due to things like https://bugzilla.mozilla.org/show_bug.cgi?id=429594
-
- 04 Apr, 2020 1 commit
-
-
Steven Allen authored
Allowing methods isn't as simple as just allowing/disallowing them because different methods do different things. * HEAD: should be allowed everywhere GET is allowed. * OPTIONS: * When a CORS request is made, this will be handled by the CORS library. * Otherewise, we need to return the allowed methods. * POST: always allowed. * Everything else: always denied. Changing HandledMethods to a simple AllowGet makes it easier to "do the right thing".
-
- 03 Apr, 2020 2 commits
-
-
Adrian Lanzafame authored
Part of the work to unblock: https://github.com/ipfs/go-log/pull/65
-
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.
-
- 25 May, 2019 1 commit
-
-
Steven Allen authored
This: 1. Ensures the correct content type. 2. Tells browsers not to sniff the content type. This prevents any nasties from happening...
-
- 13 May, 2019 1 commit
-
-
Steven Allen authored
CloseNotifier has been deprecated for a while. Also, ditch the "environment" context. We don't actually _need_ this.
-
- 13 Dec, 2018 4 commits
-
-
keks authored
-
keks authored
-
keks authored
-
Steven Allen authored
We can't stream a response while reading a body *unless* we've configured the connection to close after we're done sending a response. This patch works around that issue by doing exactly that.
-
- 26 Oct, 2018 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
-
- 25 Oct, 2018 1 commit
-
-
Steven Allen authored
Only use custom encoders for values. fixes #65 Also, remove SetEncoder. Always derive the correct encoder from the request.
-
- 31 Jul, 2018 1 commit
-
-
Jeromy authored
-
- 16 Feb, 2018 1 commit
-
-
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).
-
- 19 Jan, 2018 1 commit
-
-
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.
-
- 08 Jan, 2018 1 commit
-
-
Steven Allen authored
We *always* expect environments to be able to return a context so we might as well enforce this with the type system.
-
- 22 Dec, 2017 1 commit
-
-
keks authored
-
- 21 Dec, 2017 1 commit
-
-
keks authored
-
- 13 Dec, 2017 2 commits
-
-
Steven Allen authored
-
Steven Allen authored
-
- 12 Dec, 2017 1 commit
-
-
Steven Allen authored
-
- 07 Dec, 2017 1 commit
-
-
keks authored
-
- 22 Nov, 2017 1 commit
-
-
keks authored
Every log event resulting from a command will have a uuid associated with it. Copied from go-ipfs#4392.
-
- 08 Jun, 2017 2 commits
- 20 Apr, 2017 1 commit
-
-
Jan Winkelmann authored
-
- 22 Mar, 2017 1 commit
- 21 Mar, 2017 1 commit
-
-
Jan Winkelmann authored
-
- 13 Mar, 2017 3 commits
-
-
Jan Winkelmann authored
-
Jan Winkelmann authored
-
Jan Winkelmann authored
-
- 16 Feb, 2017 1 commit
-
-
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
-
- 13 Feb, 2017 1 commit
-
-
Jan Winkelmann authored
-