Add support for a
URI scheme.
Support for the http(s):
and
file:
URI schemes are enabled by default.
Iterate over key/value pairs of an object. It will follow any references it encounters so it always yields JSON compatible values.
Retrieve a document located at the given URI. URIs can be relative if a base URI can be determined. On the server-side, the base URI is the CWD. In browser, the base URI is the URI of the page.
Returns the media type of the resource based on its URI. This is usually based on the extension and configured by hyperjump.MediaTypePlugins.
Iterate over an array node. It will follow any references it encounters so it always yields JSON compatible values.
This is mostly useful for disabling a scheme that's enabled by default.
This is mostly useful for disabling a scheme that's enabled by default.
Unless you're using it in a UriSchemePlugin.retrieve method, this
is not the method you're looking for. It's used internally to fetch a
resource before processing it based on its media type. You might use it for
implementing hyperjump.UriSchemePlugins for URI schemes that don't
have locating semantics (such as urn:
) and instead map to another URI
where the resource can be retrieved from. See the example in the README.
Set the quality that will be used in the Accept header of requests to indicate to servers which media types are preferred over others.
This is like indexing into an object or array. It will follow any references it encounters so it always returns a JSON compatible value.
Iterate over the values of an object. It will follow any references it encounters so it always yields JSON compatible values.
Constructs an
Accept
header based on the registered media types.