Class: SourceHandler

SourceHandler

An abstract class responsible for coercing a code sources data into a {SourceData} object. This is not a stand

Constructor

new SourceHandler()

Source:

Methods

canHandle(url) → {boolean}

Determines if the handler can process the given URL.
Parameters:
Name Type Description
url string The url to process
Source:
Returns:
- True if teh handler can process the given URL.
Type
boolean

fetch(url, callback)

Fetches the given data associated with the code source
Parameters:
Name Type Description
url string The url of the code source
callback SourceHandler~fetchCallback The callback for the fetch operation.
Source: