FeedFetcherConfig

The configuration of a FeedFetcher: the receiver of the factory's lambda. Stable Core. Not thread-safe; use it only inside the lambda.

Types

Link copied to clipboard
object Companion

The defaults.

Properties

Link copied to clipboard

The Accept header value; DEFAULT_ACCEPT by default. Not blank; only HTAB and U+0020 to U+007E.

Link copied to clipboard

How many parses of this fetcher run at once; DEFAULT_MAX_CONCURRENT_PARSES by default; at least 1. The heap a deployment needs grows with the sum of this over every fetcher in the process (about 128 MB of headroom for two parses of 2 MiB documents).

Link copied to clipboard
var parseDispatcher: CoroutineDispatcher

Where parses run; Dispatchers.Default by default. A parse is CPU-bound and cannot be cancelled: do not give it a dispatcher that must stay responsive.

Link copied to clipboard

The parser; the platform's default (RomeFeedParser() on the JVM) by default. Implementing your own needs the opt-in of FeedParser.