interface Middleware {
    onError?(context: ErrorContext): Promise<void | Response>;
    post?(context: ResponseContext): Promise<void | Response>;
    pre?(context: RequestContext): Promise<void | FetchParams>;
}

Methods

  • Parameters

    Returns Promise<void | Response>

  • Parameters

    Returns Promise<void | Response>