Comunica

    Module @comunica/actor-dereference-http - v4.1.0

    Comunica Http Dereference Actor

    npm version

    An Dereference actor that resolves the URL using the HTTP bus.

    An Dereference actor implementation for Comunica that resolves the URL using the HTTP bus.

    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.

    $ yarn add @comunica/actor-dereference-http
    

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

    {
      "@context": [
        ...
        "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-dereference-http/^4.0.0/components/context.jsonld"
      ],
      "actors": [
        ...
        {
          "@id": "urn:comunica:default:dereference/actors#http",
          "@type": "ActorDereferenceHttp",
          "beforeActors": { "@id": "urn:comunica:default:dereference/actors#fallback" },
          "mediatorHttp": { "@id": "urn:comunica:default:http/mediators#main" },
          "maxAcceptHeaderLength": 1024,
          "maxAcceptHeaderLengthBrowser": 128,
        }
      ]
    }
    
    • mediatorHttp: A mediator over the HTTP bus.
    • maxAcceptHeaderLength: The maximum allowed accept header value length for non-browser environments, defaults to 1024.
    • maxAcceptHeaderLengthBrowser: The maximum allowed accept header value length for browser environments, defaults to 128.

    Classes

    ActorDereferenceHttp
    ActorDereferenceHttpBase

    Interfaces

    IActorDereferenceHttpArgs

    Functions

    mediaTypesToAcceptString
    MMNEPVFCICPMFPCPTTAAATR