Configuration

data class Configuration(developmentMode: Boolean = false, curseForgeApiKey: String? = null, userAgent: String? = null, timeout: <Error class: unknown class> = 3.minutes)

Constructors

Link copied to clipboard
constructor(developmentMode: Boolean = false, curseForgeApiKey: String? = null, userAgent: String? = null, timeout: <Error class: unknown class> = 3.minutes)

Functions

Link copied to clipboard
fun curseForge(apiKey: String?)

Sets the CurseForge API key for authentication.

Link copied to clipboard

Enables development mode for testing purposes.

Link copied to clipboard
fun withTimeout(timeout: <Error class: unknown class>)

Sets the timeout duration for HTTP requests.

Link copied to clipboard
fun withUserAgent(agent: String)

Sets the user agent for HTTP requests.