Skip to content
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

prototype ucanto sending requests over http using content-type: multipart #338

Open
gobengo opened this issue Jan 18, 2024 · 1 comment
Open

Comments

@gobengo
Copy link
Contributor

gobengo commented Jan 18, 2024

Motivation:

  • make it easier to debug ucanto via web browser dev tools. right now we send CAR file format which is the only multi-block ipld format that made sense at the time. but maybe multipart messages could encode multiple dag-json blocks. Since web browsers already send multipart requests for html forms with file inputs, maybe this would be better in liu of explicit CAR devtooling in the browser

Why it's worth exploring:

  • console.web3.storage uses ucanto for its connection to up.web3.storage, but it uses ucanto in a way where the bytes over the wire aren't parsed by most browsers devtools. If we prototype other ways of encoding the ucanto messages that do look good in browser devtools, console can use that and be more debuggable/demoable
@gobengo
Copy link
Contributor Author

gobengo commented Jan 18, 2024

this is a prototype of many dag-json CIDs in a multipart message. storacha/migrate-to-w3up#1 (using content-id header...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant