(context: RequestContext)
| 480 | |
| 481 | export interface Middleware { |
| 482 | pre?(context: RequestContext): Promise<FetchParams | void>; |
| 483 | post?(context: ResponseContext): Promise<Response | void>; |
| 484 | onError?(context: ErrorContext): Promise<Response | void>; |
| 485 | } |