| 117 | } |
| 118 | |
| 119 | export interface UiServerHandle { |
| 120 | /** The port actually bound (may differ from the requested one — see fallback). */ |
| 121 | port: number; |
| 122 | /** The URL to open. */ |
| 123 | url: string; |
| 124 | /** Directory being served as the viewer. */ |
| 125 | viewerDir: string; |
| 126 | /** The underlying server, for tests and for callers that want raw events. */ |
| 127 | server: http.Server; |
| 128 | /** Stop listening and drop live connections. Idempotent. */ |
| 129 | close(): Promise<void>; |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Response headers sent on EVERY response. |
no outgoing calls
no test coverage detected