08cc5da55f
gx: update deps
...
Importantly:
* fixes a bunch of MFS bugs
* pulls in some bitswap improvements
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2019-01-08 19:19:34 -08:00
9dcec2b3e2
gx: update go-libp2p-peer
...
Reverts the changes that allowed small keys (ed25519 keys) to be inlined.
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-12-07 15:37:23 -08:00
3b2ce4a85d
Apply suggestions from code review
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
Co-Authored-By: ianopolous <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
b720d1f0b5
uses the global PeerHost and don't expose the P2P one
...
License: MIT
Signed-off-by: Steven Allen <steven@stebalien.com>
2018-11-28 23:17:27 -08:00
fd43f473b4
switch to new path format in p2p http proxy
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
13b0483df0
Don't url decode protocol name. It won't work.
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
3f6b866edc
[http_proxy_over_p2p] url-decode the proxy name and fix test
...
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:27 -08:00
42a843d66b
Fix request path. Wasn't using proxy correctly
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-11-28 23:17:27 -08:00
2cc1a99566
Let URL's host take precedence
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-11-28 23:17:27 -08:00
f03efbd200
Use go-libp2p-http
...
License: MIT
Signed-off-by: Hector Sanjuan <hector@protocol.ai>
2018-11-28 23:17:27 -08:00
d30c41a5e0
Improve p2p stream closing in http proxy
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
6e24fc609a
Use request context in p2p stream http proxy
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
c67d2b4186
Remove unnecessary pointer usage.
...
Make sure the p2p stream is closed eventually
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:27 -08:00
f052d18471
fix non empty paths in p2p http proxy
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:26 -08:00
90f5bad718
[http_proxy_over_p2p] proxy async.
...
Simultaneously send request-body while reading response-body when
proxying requests.
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
5f246e3211
[http_proxy_over_p2p] httputil.ReverseProxy
...
Reimplement http-request proxying ala httputil.ReverseProxy.
NB: this is proxies the request synchronously (sends all request-body
before reading any response).
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
335bca2bb7
[http_proxy_over_p2p] remove now superfluous test
...
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
22f3b11621
change handler mount point to /proxy/http/
...
License: MIT
Signed-off-by: Ian Preston <ianopolous@protonmail.com>
2018-11-28 23:17:26 -08:00
1945e44f7f
[http_proxy_over_p2p] Add sharness tests for http-proxy-over-p2p
...
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00
c862ac1fb4
[http_proxy_over_p2p] more tests, fix build
...
License: MIT
Signed-off-by: Chris Boddy <chris@boddy.im>
2018-11-28 23:17:26 -08:00