kubo/core/corehttp
Dennis Trautwein 36368ee4dd feat: support requests from registerProtocolHandler
This commit adds support for requests produced by navigator.registerProtocolHandler on gateways. Now one can register `dweb.link` as an URI handler for `ipfs://`:

```
navigator.registerProtocolHandler('ipfs', 'https://dweb.link/ipfs/?uri=%s', 'ipfs resolver')
```

Then opening `ipfs://QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR` will produce an HTTP GET call to:

```
https://dweb.link/ipfs?uri=ipfs%3A%2F%2FQmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR
```

The query parameter `uri` will now be parsed and the given content identifier resolved via:

`https://dweb.link/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR`
2021-01-14 20:52:04 +01:00
..
commands.go fix: localhost API access via ipv6 2020-10-20 00:46:40 +02:00
corehttp.go chore: update go-multiaddr and go-multiaddr-net 2020-08-25 15:24:48 -04:00
gateway_handler.go feat: support requests from registerProtocolHandler 2021-01-14 20:52:04 +01:00
gateway_indexPage.go test(gw): add t0115-gateway-dir-listing.sh to sharness 2020-09-29 02:27:28 +02:00
gateway_test.go feat: support requests from registerProtocolHandler 2021-01-14 20:52:04 +01:00
gateway.go http: use Method* constants 2020-01-10 10:19:08 +01:00
hostname_test.go test: false for isHTTPSRequest 2021-01-08 00:31:46 +01:00
hostname.go fix: check if rootID has DNSLink before uninlining 2021-01-14 20:14:35 +01:00
lazyseek_test.go test(gateway): test the lazy seeker 2020-01-05 16:43:45 -08:00
lazyseek.go fix(gateway): fix seek read length typo 2020-01-05 16:43:45 -08:00
logs.go fix(tracing): remove event tracing 2020-01-28 21:31:12 -08:00
metrics_test.go migrate to go-libp2p-core. 2019-05-31 23:23:52 -07:00
metrics.go fix: decrease log level of opencensus initialization 2020-12-08 21:46:49 -05:00
mutex_profile.go fix: use http.Error for sending errors 2019-05-25 10:45:17 -07:00
option_test.go http: use Method* constants 2020-01-10 10:19:08 +01:00
p2p_proxy_test.go rename ProxyOption to P2PProxyOption 2020-03-17 19:34:44 -07:00
p2p_proxy.go p2p-proxy: earlier peerID validation check 2020-12-01 12:24:18 -05:00
redirect.go fix the wrong path configuration in root redirection 2019-04-15 12:35:45 +09:00
webui.go feat: ipfs-webui v2.11.4 2020-10-07 15:01:32 +02:00