From aea2fce9879c78e7f674b98075fbe4eee62e55d7 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Tue, 11 Nov 2014 16:26:46 -0800 Subject: [PATCH] cmd/ipfs2: Added explanation comment to ipfsHandler --- cmd/ipfs2/ipfsHandler.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/ipfs2/ipfsHandler.go b/cmd/ipfs2/ipfsHandler.go index b522607b0..07a64724a 100644 --- a/cmd/ipfs2/ipfsHandler.go +++ b/cmd/ipfs2/ipfsHandler.go @@ -22,6 +22,8 @@ type ipfs interface { NewDagReader(nd *dag.Node) (io.Reader, error) } +// ipfsHandler is a HTTP handler that serves IPFS objects (accessible by default at /ipfs/) +// (it serves requests like GET /ipfs/QmVRzPKPzNtSrEzBFm2UZfxmPAgnaLke4DMcerbsGGSaFe/link) type ipfsHandler struct { node *core.IpfsNode }