kinetex - v1.0.0-rc.1
    Preparing search index...

    Function createHARInterceptor

    • Create a HAR (HTTP Archive) recording interceptor. Captures request/response pairs for export as a HAR log.

      Returns {
          requestInterceptor: RequestInterceptorFn;
          responseInterceptor: ResponseInterceptorFn;
          getHAR: () => HARLog;
          clearHAR: () => void;
      }

      • requestInterceptor: RequestInterceptorFn

        Records the start time for HAR entry timing

      • responseInterceptor: ResponseInterceptorFn

        Captures request/response details into the HAR log

      • getHAR: () => HARLog

        Returns the recorded HAR log in HAR 1.2 format

      • clearHAR: () => void

        Clears all recorded HAR entries