class CompositeFetcher
implements IContentFetcher
Combines multiple fetchers, trying each in order. First fetcher that can handle the source wins.
new
CompositeFetcher(fetchers: IContentFetcher[])
Creates a new CompositeFetcher
private
readonly
fetchers: IContentFetcher[]
addFetcher(fetcher: IContentFetcher,priority?: boolean,): void
Adds a fetcher to the chain.
canHandle(source: string): boolean
Checks if any fetcher can handle the given source.
fetch(source: string): Promise<string>
Fetches content using the first fetcher that can handle the source.