All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.http4k.tracing.VcrEvents.kt Maven / Gradle / Ivy

There is a newer version: 5.41.0.0
Show newest version
package org.http4k.tracing

import org.http4k.events.Event
import org.http4k.events.Events
import org.http4k.tracing.junit.RecordingMode

interface VcrEvents : Events, Iterable {

    /**
     * Enable trace recording for just this block.
     */
    fun  record(block: () -> T): T

    /**
     * Disable trace recording for just this block.
     */
    fun  pause(block: () -> T): T

    /**
     * Enable trace recording
     */
    fun resume()

    /**
     * Disable trace recording
     */
    fun pause()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy