-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(gateway): Block and CAR response formats #8758
Commits on Mar 2, 2022
-
refactor(gw): move file logic to serveFile func
one must imagine Sisyphus happy
Configuration menu - View commit details
-
Copy full SHA for 8eb1210 - Browse repository at this point
Copy the full SHA 8eb1210View commit details -
feat: serveRawBlock implements ?format=block
This is mvp which reuses http header logic from serveFile, plus custom content-disposition to ensure browsers dont render garbage
Configuration menu - View commit details
-
Copy full SHA for d2f563e - Browse repository at this point
Copy the full SHA d2f563eView commit details
Commits on Mar 3, 2022
-
feat: serveCar implements ?format=car
This is PoC implementation that returns CAR as a chunked stream. It does not set cache-control nor it has content-length. TBD if we want/can have these things.
Configuration menu - View commit details
-
Copy full SHA for e213164 - Browse repository at this point
Copy the full SHA e213164View commit details
Commits on Mar 8, 2022
-
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 (TBD, we did not register them yet, so for illustration purpose only)
Configuration menu - View commit details
-
Copy full SHA for 9fbfb0b - Browse repository at this point
Copy the full SHA 9fbfb0bView commit details -
refactor: unixfs_get_latency_seconds
Include block and car in unixfs_get_latency_seconds for now, so we keep basic visibility into gateway behavior until better metrics are added by #8441
Configuration menu - View commit details
-
Copy full SHA for ee7b0ae - Browse repository at this point
Copy the full SHA ee7b0aeView commit details
Commits on Mar 9, 2022
-
Configuration menu - View commit details
-
Copy full SHA for aed0bf5 - Browse repository at this point
Copy the full SHA aed0bf5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 43dc5bf - Browse repository at this point
Copy the full SHA 43dc5bfView commit details -
fix: use .bin for raw block content-disposition
.raw may be handled by something, depending on OS, and .bin seems to be universially "binary file" across all systems: https://en.wikipedia.org/wiki/List_of_filename_extensions_(A%E2%80%93E)
Configuration menu - View commit details
-
Copy full SHA for c5b5f34 - Browse repository at this point
Copy the full SHA c5b5f34View commit details -
Configuration menu - View commit details
-
Copy full SHA for b45198b - Browse repository at this point
Copy the full SHA b45198bView commit details -
test: t0118-gateway-car/carv1-basic.car
This test uses official CARv1 fixture from https://ipld.io/specs/transport/car/fixture/carv1-basic/ The CAR has two dag-cbor roots, and we use one of them, which represents a nice DAG with both dag-cbor, dag-pb and raw blocks
Configuration menu - View commit details
-
Copy full SHA for 17d00ce - Browse repository at this point
Copy the full SHA 17d00ceView commit details
Commits on Mar 15, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 83fa845 - Browse repository at this point
Copy the full SHA 83fa845View commit details -
Configuration menu - View commit details
-
Copy full SHA for 84f2b05 - Browse repository at this point
Copy the full SHA 84f2b05View commit details -
refactor: gateway_handler_unixfs.go
- Moved UnixFS response handling to gateway_handler_unixfs*.go files. - Removed support for X-Ipfs-Gateway-Prefix (Closes #7702)
Configuration menu - View commit details
-
Copy full SHA for d849115 - Browse repository at this point
Copy the full SHA d849115View commit details -
Configuration menu - View commit details
-
Copy full SHA for 26c122e - Browse repository at this point
Copy the full SHA 26c122eView commit details -
refactor: prefix cleanup and readable paths
- removed dead code after X-Ipfs-Gateway-Prefix is gone (#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 copied)
Configuration menu - View commit details
-
Copy full SHA for eb95d2b - Browse repository at this point
Copy the full SHA eb95d2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for aae5c28 - Browse repository at this point
Copy the full SHA aae5c28View commit details
Commits on Mar 16, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 5b43672 - Browse repository at this point
Copy the full SHA 5b43672View commit details