If you want to access https://docs.ipfs.tech/reference/kubo/rpc/ then you should use the dedicated Kubo RPC client from NPM: https://www.npmjs.com/package/kubo-rpc-client
It aims to be a drop-in replacement the for deprecated ipfs-http-client