import { Request, Response } from ".."; export interface RequestInterceptor { /** * This method is invoked asynchronously * @param request The intercepted request */ interceptRequest(request: Request): Promise; /** * While this method can be marked async, you should not * do any long running/blocking tasks here. The underlying swift * implementation does not run asynchronously and blocks the * thread it was invoked on * * You *cannot* modify anything other than the data in a Response * @param response The intercepted response */ interceptResponse(response: Response): Promise; }