kubo/core
Marcin Rataj 4cabdfefbf
feat(gateway): Block and CAR response formats (#8758)
* feat: serveRawBlock implements ?format=block
* feat: serveCar implements ?format=car
* feat(gw): ?format= or Accept HTTP header

- extracted file-like content type responses to separate .go files
- Accept HTTP header with support for application/vnd.ipld.* types

* fix: use .bin for raw block content-disposition

.raw may be handled by something, depending on OS, and .bin
seems to be universally "binary file" across all systems:
https://en.wikipedia.org/wiki/List_of_filename_extensions_(A%E2%80%93E)

* refactor: gateway_handler_unixfs.go

- Moved UnixFS response handling to gateway_handler_unixfs*.go files.
- Removed support for X-Ipfs-Gateway-Prefix (Closes #7702)

* refactor: prefix cleanup and readable paths

- removed dead code after X-Ipfs-Gateway-Prefix is gone
  (https://github.com/ipfs/go-ipfs/issues/7702)
- escaped special characters in content paths returned with http.Error
  making them both safer and easier to reason about (e.g. when invisible
  whitespace Unicode is used)
2022-03-17 17:15:24 +01:00
..
bootstrap fix(tracing): remove event tracing 2020-01-28 21:31:12 -08:00
commands feat: add full goroutine stack dump (#8790) 2022-03-16 09:42:22 -04:00
coreapi fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
coredag gx: unrewrite 2019-03-05 18:33:56 +01:00
corehttp feat(gateway): Block and CAR response formats (#8758) 2022-03-17 17:15:24 +01:00
corerepo feat: go-libp2p 0.16, UnixFS autosharding and go-datastore with contexts (#8563) 2021-11-29 19:58:05 +01:00
coreunix fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
mock fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
node fix(discovery): fix daemon not starting due to mdns startup failure (#8704) 2022-03-09 07:08:24 -08:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
builder.go fix(core/node): unwrap fx error in node construction 2022-03-16 19:32:31 -03:00
core_test.go fix: rewrite dependencies over the go-ipfs-config package 2022-03-04 09:45:16 +01:00
core.go update go-libp2p to v0.15.0-rc.1 2021-08-19 18:05:04 +02:00