Skip to content

amirqasemi74/ifetch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}
    }
  }
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published