Comunica 跟随重定向 Http 主角
DEPRECATED:使用更灵活的@comunica/actor-http-fatch而不是失去性能.
一个 HTTP 密码 演员
使用节点请求的 API (XMLHttpRequest 在浏览器中执行 HTTP 请求.
这个模块是 通信框架, (中文(简体) ), 并且只能用于 想要建立自己的查询引擎的开发者。 。 。 .
如果您想要询问Comunica, 请点击这里。 。 。 .
安装
$ yarn add @comunica/actor-http-native
配置
安装后,此软件包可以添加到您的引擎配置中如下:
{
"@context": [
...
"https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-native/^5.0.0/components/context.jsonld"
],
"actors": [
...
{
"@id": "urn:comunica:default:http/actors#native",
"@type": "ActorHttpNative"
}
]
}
配置参数
agentOptions:HTTP代理的代理JSON选项. (可选)