Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 337 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 337 Bytes

ifetch

Ifetch is the same as the fetch browser API but also it has the feature to intercept request and response.

import ifetch from 'ifetch'

ifetch.interceptor.register({
  id: "ID for this interceptors",
  phases: {
    request:(input: RequestInfo, init?: RequestInit) {
      return {input, init}
    }
  }
})