Checks if the input data can be handled by this class. Throws an error if it can't handle the data.
Input data that could potentially be handled.
A promise resolving if the input can be handled, rejecting with an Error if not.
Input data that will be handled if it can be handled.
A promise resolving if the input can be handled, rejecting with an Error if not. Return value depends on the given type.
Handler that sets CORS options on the response. In case of an OPTIONS request this handler will close the connection after adding its headers.
Solid, ยง7.1: "A data pod MUST implement the CORS protocol [FETCH] such that, to the extent possible, the browser allows Solid apps to send any request and combination of request headers to the data pod, and the Solid app can read any response and response headers received from the data pod." Full details: https://solid.github.io/specification/protocol#cors-server