(frame: RequestFrame)
| 157 | |
| 158 | // Apply tracing lazily so disabled requests can use the single-frame path. |
| 159 | const traced = (frame: RequestFrame) => |
| 160 | tracer( |
| 161 | withMiddleware(frame) as Effect.Effect< |
| 162 | HttpServerResponse, |
| 163 | E | EH | HttpServerError, |
| 164 | HttpServerRequest | R | RH |
| 165 | > |
| 166 | ) |
| 167 | |
| 168 | // Handle untraced requests without middleware in one continuation frame. |
| 169 | // Effectful writes use `finishAfter` to restore state and close the scope. |
no test coverage detected