FeedFetcher

fun FeedFetcher(urlFetcher: UrlFetcher, configure: FeedFetcherConfig.() -> Unit = {}): FeedFetcher(source)

Builds a FeedFetcher over a UrlFetcher the caller owns. Stable Core. The fetcher never closes it. Share one budget by building the UrlFetcher with it.

Return

the fetcher.

Parameters

urlFetcher

the fetcher to compose; the caller closes it.

configure

sets the parser, the parse dispatcher, the parse concurrency and Accept; the defaults when omitted.

Throws

if maxConcurrentParses is below 1 or accept is blank or not a sendable header value.