fission-codes / ipfs-haskell

IPFS wrapper for Haskell
https://hackage.haskell.org/package/ipfs
Apache License 2.0
43 stars 5 forks source link

Add stat to ipfs remote api #15

Closed dholms closed 4 years ago

dholms commented 4 years ago

Problem

There is no way to access stat information about an ipfs object through the HTTP interface

Solution

Add /object/stat route to ipfs remote api

Other consideration

Should we make the remote Monad mirror the local monad more closely such that the monad only has the one function (runRemote in this case) instead of another function for every possible operation. I forget the reasoning behind this. Probably just that it was the first monad I rolled by hand :sweat_smile: