kubo/docs/examples
Marcin Rataj 673461dabc feat(rpc): add Content-Type headers for binary responses
set proper Content-Type headers for RPC endpoints that return binary data:

- `dag export`: application/vnd.ipld.car
- `block get`: application/vnd.ipld.raw
- `diag profile`: application/zip
- `get`: application/x-tar or application/gzip (already worked, migrated to new API)

uses the new OctetStream encoding type and SetContentType() method
from go-ipfs-cmds to specify custom MIME types for binary responses.

refs: https://github.com/ipfs/kubo/issues/2376
2026-01-30 19:14:05 +01:00
..
example-folder Cosmetic fixups in examples (#8325) 2021-08-27 11:55:26 -04:00
kubo-as-a-library feat(rpc): add Content-Type headers for binary responses 2026-01-30 19:14:05 +01:00
go-ipfs-as-a-library chore: update kubo-as-a-library example 2022-07-25 16:48:52 +02:00