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

[feature][BTIP-35]: Provide a series of tool command to encode/decode the content #35

Open
Shawn-Huang-Tron opened this issue Jul 21, 2023 · 0 comments

Comments

@Shawn-Huang-Tron
Copy link
Collaborator

Shawn-Huang-Tron commented Jul 21, 2023

The HTTP API has a few endpoints that return newline-delimited JSON which is used to stream responses to the client.

One such API is pubsub/sub. The problem here is that the data is sent as an ASCII-encoded string with no escaping so can include the newline character code which our HTTP client then interprets (not unreasonably) as ending the current line.

The btfs multibase commands can solve this problem by encoding/decoding the content.
The docs about this BTIP is in: BTIP-35

@Shawn-Huang-Tron Shawn-Huang-Tron changed the title [feature][BTIP-30]: Provide a series of tool command to encode/decode the content [feature][BTIP-35]: Provide a series of tool command to encode/decode the content Jul 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant