kubo/test/sharness/lib
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
..
0001-Generate-partial-JUnit-reports.patch ci: Collect test times for sharness 2018-04-21 22:40:03 +02:00
gen-junit-report.sh ci: run go vet, disable docker on jenkins 2018-04-10 18:31:25 +02:00
install-sharness.sh ci: Collect test times for sharness 2018-04-21 22:40:03 +02:00
iptb-lib.sh feat: add noise support 2020-05-25 23:46:48 -07:00
test-aggregate-results.sh sharness: 2 space indent 2017-10-04 13:39:14 +02:00
test-lib-hashes.sh test: fix sharness tests for welcome docs changes 2020-04-20 11:23:30 -07:00
test-lib.sh feat(gateway): Block and CAR response formats (#8758) 2022-03-17 17:15:24 +01:00