mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
docs(changelog): add Content-Type and name get entries for v0.40
document RPC Content-Type headers for binary responses and new ipfs name get command
This commit is contained in:
parent
8c14353a5c
commit
5823ee4e0c
@ -22,6 +22,8 @@ This release was brought to you by the [Shipyard](https://ipshipyard.com/) team.
|
||||
- [🌐 No unnecessary DNS lookups for AutoTLS addresses](#-no-unnecessary-dns-lookups-for-autotls-addresses)
|
||||
- [⏱️ Configurable gateway request duration limit](#️-configurable-gateway-request-duration-limit)
|
||||
- [🔧 Recovery from corrupted MFS root](#-recovery-from-corrupted-mfs-root)
|
||||
- [📡 RPC `Content-Type` headers for binary responses](#-rpc-content-type-headers-for-binary-responses)
|
||||
- [🔖 New `ipfs name get` command](#-new-ipfs-name-get-command)
|
||||
- [📋 Long listing format for `ipfs ls`](#-long-listing-format-for-ipfs-ls)
|
||||
- [📦️ Dependency updates](#-dependency-updates)
|
||||
- [📝 Changelog](#-changelog)
|
||||
@ -147,6 +149,28 @@ $ ipfs files chroot --confirm QmYourBackupCID
|
||||
|
||||
See `ipfs files chroot --help` for details.
|
||||
|
||||
#### 📡 RPC `Content-Type` headers for binary responses
|
||||
|
||||
HTTP RPC endpoints that return binary data now set appropriate `Content-Type` headers, making it easier to integrate with HTTP clients and tooling that rely on MIME types. On CLI these commands behave the same as before, but over HTTP RPC you now get proper headers:
|
||||
|
||||
| Endpoint | Content-Type |
|
||||
|------------------------|-------------------------------------------|
|
||||
| `/api/v0/get` | `application/x-tar` or `application/gzip` |
|
||||
| `/api/v0/dag/export` | `application/vnd.ipld.car` |
|
||||
| `/api/v0/block/get` | `application/vnd.ipld.raw` |
|
||||
| `/api/v0/name/get` | `application/vnd.ipfs.ipns-record` |
|
||||
| `/api/v0/diag/profile` | `application/zip` |
|
||||
|
||||
#### 🔖 New `ipfs name get` command
|
||||
|
||||
You can now retrieve raw signed IPNS records directly with `ipfs name get`. The output can be piped to `ipfs name inspect` for debugging:
|
||||
|
||||
```console
|
||||
$ ipfs name get /ipns/k51... | ipfs name inspect
|
||||
```
|
||||
|
||||
On CLI this behaves the same as `ipfs routing get /ipns/...`, but over HTTP RPC it returns raw bytes with `Content-Type: application/vnd.ipfs.ipns-record` instead of JSON with base64-encoded payload.
|
||||
|
||||
#### 📋 Long listing format for `ipfs ls`
|
||||
|
||||
The `ipfs ls` command now supports `--long` (`-l`) flag for displaying Unix-style file permissions and modification times. This works with files added using `--preserve-mode` and `--preserve-mtime`. See `ipfs ls --help` for format details and examples.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user