@comunica/actor-http-proxy
    TypeScript icon, indicating that this package has built-in type declarations

    1.22.1 • Public • Published

    Comunica Proxy Http Actor

    npm version

    An HTTP actor that can redirect HTTP actions through a proxy.

    This module is part of the Comunica framework, and should only be used by developers that want to build their own query engine.

    Click here if you just want to query with Comunica.

    Install

    $ yarn add @comunica/actor-http-proxy

    Configure

    After installing, this package can be added to your engine's configuration as follows:

    {
      "@context": [
        ...
        "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-proxy/^1.0.0/components/context.jsonld"  
      ],
      "actors": [
        ...
        {
          "@id": "config-sets:http.json#myHttpProxy",
          "@type": "ActorHttpProxy",
          "cahp:Actor/Http/Proxy/mediatorHttp": {
            "@id": "config-sets:http.json#mediatorHttp"
          },
          "beforeActor": "config-sets:http.json#myHttpFetcher"
        }
      ]
    }
    

    Use beforeActor to indicate that this actor MUST always run before your default HTTP actor.

    Config Parameters

    • cahp:Actor/Http/Proxy/mediatorHttp: A mediator over the HTTP bus.

    Install

    npm i @comunica/actor-http-proxy

    DownloadsWeekly Downloads

    5,303

    Version

    1.22.1

    License

    MIT

    Unpacked Size

    11.9 kB

    Total Files

    14

    Last publish

    Collaborators

    • joachimvh
    • rubensworks
    • rubenverborgh
    • dexagod