Package-level declarations
Types
Link copied to clipboard
class Intercept(renderMode: RenderMode = OnFailure, redirectFilter: Filter = Filter.NoOp, clock: Clock = Clock.systemUTC(), random: Random = SecureRandom(byteArrayOf()), serverName: String = "http4k-server", baseUrl: Uri = Uri.of(""), traceStore: TraceStore = TraceStore.InMemory(), logStore: LogStore = LogStore.InMemory(), transactionStore: TransactionStore = TransactionStore.InMemory(), livingDocsSections: List<LivingDocSection> = defaultLivingDocSections, traceReportTabs: List<TabContentRenderer> = defaultTraceReportTabs, reportDir: File = outputDir, appFn: Context.() -> PolyHandler) : ParameterResolver, BeforeTestExecutionCallback, AfterTestExecutionCallback
Wiretap Intercept is a JUnit Extension that records all traffic and telemetry inside an application in order that it can be visualised post-test.
Link copied to clipboard
data class JUnitTestReport(val testName: String, val css: String, val traces: List<TraceEntry>, val traffic: List<TrafficEntry>, val stdOut: String, val stdErr: String) : ViewModel
Link copied to clipboard
Link copied to clipboard
class TestReportRenderer(traceStore: TraceStore, logStore: LogStore, transactionStore: TransactionStore, clock: Clock, tabRenderers: List<TabContentRenderer>)
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
fun Intercept.Companion.mcp(renderMode: RenderMode = OnFailure, redirectFilter: Filter = Filter.NoOp, clock: Clock = Clock.systemUTC(), random: Random = SecureRandom(byteArrayOf()), serverName: String = "http4k-server", baseUrl: Uri = Uri.of(""), traceStore: TraceStore = TraceStore.InMemory(), logStore: LogStore = LogStore.InMemory(), transactionStore: TransactionStore = TransactionStore.InMemory(), livingDocsSections: List<LivingDocSection> = defaultLivingDocSections, traceReportTabs: List<TabContentRenderer> = defaultTraceReportTabs, reportDir: File = outputDir, appFn: Context.() -> PolyHandler): Intercept
Intercept an MCP Server. Synonym for poly().
Link copied to clipboard
fun Intercept.Companion.mcpCapabilities(renderMode: RenderMode = OnFailure, redirectFilter: Filter = Filter.NoOp, clock: Clock = Clock.systemUTC(), random: Random = SecureRandom(byteArrayOf()), serverName: String = "http4k-server", baseUrl: Uri = Uri.of(""), traceStore: TraceStore = TraceStore.InMemory(), logStore: LogStore = LogStore.InMemory(), transactionStore: TransactionStore = TransactionStore.InMemory(), livingDocsSections: List<LivingDocSection> = defaultLivingDocSections, traceReportTabs: List<TabContentRenderer> = defaultTraceReportTabs, reportDir: File = outputDir, vararg extensions: McpExtension, capabilityFn: Context.() -> Iterable<ServerCapability>): Intercept
Intercept an http4k MCP ServerCapability. For whole MCP servers, use poly()