Reference
Type surface and API contracts. The tutorial is the place to start; this section is for lookup.
| Page | Covers |
|---|---|
| Endpoints | EndpointHandle<T> (ListHandle / RecordHandle), MockrServer |
| Handlers | handler({ body, query, params, fn }), ctx, ctx.forward() |
| WebSocket | ws({...}), WsEndpoint, WsHandle, hooks, schemas |
| Middleware | logger / delay / auth / errorInjection, custom pre / post |
| Scenarios | Named server states, programmatic + HTTP control |
| Proxy & forward | Pass-through, ctx.forward() mutate-then-return |
| Recorder | Chrome extension, recorder.mocksDir, server file patching |
| CLI | --port / --proxy / --recorder / --tui |
| Config | MockrConfig shape, top-level options |