Skip to content

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

@gobengo

Description

@gobengo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions