* Normalize middleware result to context shape
(result: TODO)
| 244 | * Normalize middleware result to context shape |
| 245 | */ |
| 246 | function handleCtxResult(result: TODO) { |
| 247 | if (isSpecialResponse(result)) { |
| 248 | return { response: result } |
| 249 | } |
| 250 | return result |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * Execute a middleware chain |
no test coverage detected