Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@comunica/actor-http-memento

1.17.0 • Public • Published

Comunica Memento HTTP Actor

npm version

An HTTP actor that uses implements the Memento protocol to perform time-based content negotiation.

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-memento

Configure

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

{
  "@context": [
    ...
    "https://linkedsoftwaredependencies.org/bundles/npm/@comunica/actor-http-memento/^1.0.0/components/context.jsonld"  
  ],
  "actors": [
    ...
    {
      "@id": "config-sets:http-memento.json#myHttpFetcher",
      "@type": "ActorHttpMemento",
      "cahm:Actor/Http/Memento/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

  • cahm:Actor/Http/Memento/mediatorHttp: A mediator over the HTTP bus.

Install

npm i @comunica/actor-http-memento

DownloadsWeekly Downloads

1,562

Version

1.17.0

License

MIT

Unpacked Size

10.9 kB

Total Files

10

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar