mockbeam_record library

MockBeam Record — programmatic API for embedding the proxy in other tools.

For CLI use, run mockbeam_record record --target <url> directly.

Classes

CapturedRoute
A single captured API route ready for YAML serialization.
ProxyServer
Binds an HttpServer on port, captures JSON responses into a RouteStore, and delegates every request to RequestForwarder.
RequestForwarder
Forwards incoming HttpRequests to an upstream targetBase, relays the response to the client, and optionally captures JSON responses.
ResponseCapture
Inspects upstream responses, parses JSON bodies, and records them in a RouteStore.
RouteSerializer
Converts RouteStore contents to dio_mock_interceptor-compatible YAML or JSON, merges with existing files for --append, and writes atomically.
RouteStore
In-memory table of captured routes, keyed by METHOD:path.

Enums

CaptureOutcome
The outcome of attempting to capture a single upstream response.