-
-
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): JSON and CBOR response formats (IPIP-328) #9335
Merged
Changes from 1 commit
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
ac8f9b1
wip: play with dag-cbor and dag-json
hacdias 3dce012
wip: add application/json and application/cbor
hacdias b557181
fix: go cases don't flow automatically :)
hacdias 4104bb7
test: add some dag-json and dag-cbor tests
hacdias 25893c5
test: improve names
hacdias e621e64
feat: allow json and cbor data types too
hacdias 44946ed
refactor: avoid encoding things that are already on their right encoding
hacdias 199ab42
fix: remove responseFormat from logging
hacdias 89eb033
refactor: simplify serveCodec to use serveRawBlock iff data encoded i…
hacdias fb50869
tests: rename current tests to indicate they're unixfs only
hacdias fc31241
refactor: do not use serveRawBlock inside serveCodec bc headers and o…
hacdias 55383cd
test: add test with pure json and cbor
hacdias a6d45c7
test: convert cbor <-> json
hacdias 1986be1
test: path traversal and dag-pb output
hacdias 9ef022e
fix: add more info about errors
hacdias cadc681
fix: add missing traversal
hacdias 6331695
Merge branch 'master' into feat/8823
hacdias 2c93672
fix: remove duplicate variable
hacdias 462c71b
Merge branch 'master' into feat/8823
hacdias 1e844c5
refactor: do not support traversal
hacdias bb98041
Update core/corehttp/gateway_handler_codec.go
hacdias 53d5878
improve PR to match spec
hacdias 4064f97
Merge branch 'master' into feat/8823
hacdias 8c6a8da
feat: little web page
hacdias b5e5ff2
feat: update doc
hacdias 8ca2a52
fix: Content-Disposition .json and .cbor
lidel b4dfa66
fix: inline disposition for JSON responses
lidel 83913c7
refactor: return 501 for unsupported pathing
lidel ff55745
docs(cbor): improved info about codec
lidel 52711d3
refactor: create template at assets/dag-index-html
lidel 7e84856
fix(dag@gw): content type and cache headers
lidel 3b89f20
Merge branch 'master' into feat/8823
hacdias 162f435
add changelog info
hacdias 12d0d7f
fix title
hacdias 2d8ba78
rm wild block
hacdias b5874e7
Merge branch 'master' into feat/8823
hacdias 0c08a76
Merge branch 'master' into feat/8823
hacdias f084f09
fix(dag-index-html): remove technical jargon
lidel 32bcd41
Merge branch 'master' into feat/8823
lidel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ️ We were missing Cache-Control and Etag header tests – added them in 7e84856
gateway_handler_unixfs_dir.go
(seet0116-gateway-cache.sh
for prior examples).Future work: