ferristseng / rust-ipfs-api

IPFS HTTP client in Rust
Apache License 2.0
246 stars 68 forks source link

feat: add `id_with_options` method #141

Open miraclx opened 8 months ago

miraclx commented 8 months ago

Kubo permits the use of peerid-base as a parameter when making a call to /api/v0/id. This crate should too.

In my tests, Kubo doesn't seem to respect the format parameter. It always returns JSON.

In this patch, I'm retaining it for compatibility with the spec, but disabling the ability to construct it.