ScryfallBaseApi

open class ScryfallBaseApi(config: ScryfallConfig = ScryfallConfig(), engine: HttpClientEngine? = null, logger: (String) -> Unit? = null)

Base class for Scryfall API endpoints providing shared HTTP client configuration.

Parameters

config

Configuration options for the API client

engine

Optional custom Ktor HTTP engine

logger

Optional custom logger function for logging HTTP requests/responses. If provided and logging is enabled in config, this logger will be used. If not provided, the default platform logger will be used.

Inheritors

Constructors

Link copied to clipboard
constructor(config: ScryfallConfig = ScryfallConfig(), engine: HttpClientEngine? = null, logger: (String) -> Unit? = null)