• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

richardschneider/net-ipfs-http-gateway: Allows HTTP access to IPFS files and dir ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

richardschneider/net-ipfs-http-gateway

开源软件地址:

https://github.com/richardschneider/net-ipfs-http-gateway

开源编程语言:

C# 91.0%

开源软件介绍:

IPFS HTTP Gateway

build status Coverage Status Version docs

Allows HTTP access to IPFS files and directories. An IPFS Gateway acts as a bridge between traditional web browsers and IPFS. Through the gateway, users can browse files and websites stored in IPFS as if they were stored in a traditional web server.

Getting started

Published releases are available on NuGet. To install, run the following command in the Package Manager Console

PM> Install-Package Ipfs.HttpGateway

or using .NET CLI run the following command in the project folder

> dotnet add package Ipfs.HttpGateway

Running

using Ipfs.Engine;
using Ipfs.HttpGateway;

var ipfs = new IpfsEngine();
ipfs.Start();
var gateway = new GatewayHost(ipfs);

Usage

Browse to a IPFS file or directory

localhost:8080/ipfs/Qmhash

where Qmhash is the hash or path to the IPFS content.

If Qmhash is a directory and it contains an index.html file, then the file is served. Otherwise a listing of the directory is served. To force a directory listing, end the Qmhash with a forward slash.

directory browsing

Related Projects

License

Copyright © 2019 Richard Schneider ([email protected])

This library is licensed under the MIT license. Refer to the LICENSE file for more information.

Buy Me A Coffee




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
jeroen/ipfs: R bindings to IPFS发布时间:2022-06-22
下一篇:
kingflurkel/sponnietube: experiment / ethereum ipfs youtube发布时间:2022-06-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap