Package-level declarations

Types

Link copied to clipboard
@Serializable
data class DashboardOptionsConfig(val errorPresets: List<DashboardOverridePreset>, val successPresets: List<DashboardOverridePreset>)
Link copied to clipboard
@Serializable
data class DashboardOverridePreset(val name: String, val description: String?, val response: MockzillaHttpResponse)
Link copied to clipboard
data class EndpointConfiguration(val name: String, val key: EndpointConfiguration.Key, val shouldFail: Boolean, val delay: Int? = null, val dashboardOptionsConfig: DashboardOptionsConfig, val versionCode: Int, val endpointMatcher: MockzillaHttpRequest.() -> Boolean, val defaultHandler: MockzillaHttpRequest.() -> MockzillaHttpResponse, val errorHandler: MockzillaHttpRequest.() -> MockzillaHttpResponse)
Link copied to clipboard
@Serializable
data class MetaData(val appName: String, val appPackage: String, val operatingSystemVersion: String, val deviceModel: String, val appVersion: String, val runTarget: RunTarget? = null, val mockzillaVersion: String)
Link copied to clipboard
data class MockzillaConfig(val port: Int, val endpoints: List<EndpointConfiguration>, val isRelease: Boolean, val localhostOnly: Boolean, val logLevel: MockzillaConfig.LogLevel, val releaseModeConfig: MockzillaConfig.ReleaseModeConfig, val isNetworkDiscoveryEnabled: Boolean, val additionalLogWriters: List<MockzillaLogWriter>)
Link copied to clipboard
Link copied to clipboard
@Serializable
data class MockzillaHttpResponse(val statusCode: HttpStatusCode = HttpStatusCode.OK, val headers: Map<String, String> = emptyMap(), val body: String = "")
Link copied to clipboard
data class MockzillaRuntimeParams(val config: MockzillaConfig, val mockBaseUrl: String, val apiBaseUrl: String, val port: Int, val authHeaderProvider: AuthHeaderProvider, val mockzillaVersion: String)
Link copied to clipboard

Thrown when attempting to start the Mockzilla server on a port that is occupied by another process. To resolve, either terminate the process occupying the port or update your MockzillaConfig.

Link copied to clipboard