DefaultRemoteFetcher

The RemoteFetcher used when none is supplied to a package repository. Platforms that cannot download synchronously raise com.quarkdown.core.platform.UnsupportedPlatformOperationException on fetch; embedders there must inject their own fetcher.

Downloads content synchronously through a UrlRemoteFetcher with its default timeouts.

Functions

Link copied to clipboard
expect open override fun fetchBytes(url: Url): ByteArray

Downloads the content at url.

actual open override fun fetchBytes(url: Url): ByteArray

Downloads the content at url.

Link copied to clipboard
open fun fetchText(url: Url): String

Downloads the content at url and decodes it as UTF-8 text.

open fun fetchText(url: Url): String

Downloads the content at url and decodes it as UTF-8 text.