- 03 Apr, 2020 1 commit
-
-
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
-
- 01 Feb, 2017 1 commit
-
-
Jan Winkelmann authored
this way we can share the code with the legace commands package and don't have to convert everything
-
- 28 Jan, 2017 2 commits
-
-
Jan Winkelmann authored
-
Jan Winkelmann authored
-
- 07 Nov, 2016 1 commit
-
-
Jan Winkelmann authored
Revert "http api: makes sure header is sent even when r is not ready yet. fixes #3304 (#3305)" This reverts commit 68d8a298c58ed950bd44118cc5e6d1ffc2def395. License: MIT Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
-
- 18 Oct, 2016 1 commit
-
-
keks authored
* http api: send header even when r is not ready yet. fixes #3304 License: MIT Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de> * http api: check flush error and only flush once per iteration License: MIT Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de> * http api: f.Flush is not in fact returning anything License: MIT Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de> * api http: remove pointless Flush License: MIT Signed-off-by: Jan Winkelmann <j-winkelmann@tuhh.de>
-
- 06 Oct, 2016 1 commit
-
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
-
- 26 Aug, 2016 1 commit
-
-
Jeromy authored
License: MIT Signed-off-by: Jeromy <why@ipfs.io>
-
- 24 Jun, 2016 1 commit
-
-
Jakub Sztandera authored
* Update golog in go-ipfs License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch> * Update go-libp2p for go-log License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch> * Update go-libp2p-secio for go-log License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch> * Update go-libp2p-crypto for go-log License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch> * Update go-libp2p-peer for go-log License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch> * Import peersore, it wasn't imported License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch> * Update peerstore License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch> * Update peer License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch> * Update secio License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch> * Update go-libp2p License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
-
- 15 Jun, 2016 1 commit
-
-
Richard Littauer authored
According to golang standards, these should not be capitalized nor having a trailing period, AFAIK. License: MIT Signed-off-by: Richard Littauer <richard.littauer@gmail.com>
-