UNPKG

@comunica/actor-abstract-mediatyped

Version:

An abstract actor for handling mediatypes

23 lines (14 loc) 1.02 kB
# Comunica Abstract MediaTyped Actor [![npm version](https://badge.fury.io/js/%40comunica%2Factor-abstract-mediatyped.svg)](https://www.npmjs.com/package/@comunica/actor-abstract-mediatyped) A actor for handling actions based on mediatypes, such as content negotiation This module is part of the [Comunica framework](https://github.com/comunica/comunica), and should only be used by [developers that want to build their own query engine](https://comunica.dev/docs/modify/). [Click here if you just want to query with Comunica](https://comunica.dev/docs/query/). ## Install ```bash $ yarn add @comunica/actor-abstract-mediatyped ``` ## Usage This package exposes [`ActorAbstractMediaTyped`](https://comunica.github.io/comunica/classes/_comunica_actor_abstract_mediatyped.ActorAbstractMediaTyped.html) and [`ActorAbstractMediaTypedFixed`](https://comunica.github.io/comunica/classes/_comunica_actor_abstract_mediatyped.ActorAbstractMediaTypedFixed.html) that provide utility methods for actors that handle media types.