UpdateService
interface UpdateService
Functions
Link copied to clipboard
abstract suspend fun setDefaultBody(connection: MockzillaConnectionConfig, key: EndpointConfiguration.Key, body: String?): Result<Unit>
Link copied to clipboard
abstract suspend fun setDefaultHeaders(connection: MockzillaConnectionConfig, key: EndpointConfiguration.Key, headers: Map<String, String>?): Result<Unit>
Link copied to clipboard
abstract suspend fun setDefaultPreset(connection: MockzillaConnectionConfig, key: EndpointConfiguration.Key, dashboardOverridePreset: DashboardOverridePreset): Result<Unit>
Link copied to clipboard
abstract suspend fun setDefaultStatus(connection: MockzillaConnectionConfig, key: EndpointConfiguration.Key, statusCode: HttpStatusCode?): Result<Unit>
Link copied to clipboard
abstract suspend fun setDelay(connection: MockzillaConnectionConfig, keys: Collection<EndpointConfiguration.Key>, delayMs: Int?): Result<Unit>
Link copied to clipboard
abstract suspend fun setErrorBody(connection: MockzillaConnectionConfig, key: EndpointConfiguration.Key, body: String?): Result<Unit>
Link copied to clipboard
abstract suspend fun setErrorHeaders(connection: MockzillaConnectionConfig, key: EndpointConfiguration.Key, headers: Map<String, String>?): Result<Unit>
Link copied to clipboard
abstract suspend fun setErrorPreset(connection: MockzillaConnectionConfig, key: EndpointConfiguration.Key, dashboardOverridePreset: DashboardOverridePreset): Result<Unit>
Link copied to clipboard
abstract suspend fun setErrorStatus(connection: MockzillaConnectionConfig, key: EndpointConfiguration.Key, statusCode: HttpStatusCode?): Result<Unit>
Link copied to clipboard
abstract suspend fun setShouldFail(connection: MockzillaConnectionConfig, keys: Collection<EndpointConfiguration.Key>, shouldFail: Boolean?): Result<Unit>