{"action":"opened","issue":{"url":"https://api.github.com/repos/whatwg/fetch/issues/574","repository_url":"https://api.github.com/repos/whatwg/fetch","labels_url":"https://api.github.com/repos/whatwg/fetch/issues/574/labels{/name}","comments_url":"https://api.github.com/repos/whatwg/fetch/issues/574/comments","events_url":"https://api.github.com/repos/whatwg/fetch/issues/574/events","html_url":"https://github.com/whatwg/fetch/issues/574","id":247617710,"number":574,"title":"May interceptors  will be supported?","user":{"login":"fewiki","id":13325335,"avatar_url":"https://avatars0.githubusercontent.com/u/13325335?v=4","gravatar_id":"","url":"https://api.github.com/users/fewiki","html_url":"https://github.com/fewiki","followers_url":"https://api.github.com/users/fewiki/followers","following_url":"https://api.github.com/users/fewiki/following{/other_user}","gists_url":"https://api.github.com/users/fewiki/gists{/gist_id}","starred_url":"https://api.github.com/users/fewiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fewiki/subscriptions","organizations_url":"https://api.github.com/users/fewiki/orgs","repos_url":"https://api.github.com/users/fewiki/repos","events_url":"https://api.github.com/users/fewiki/events{/privacy}","received_events_url":"https://api.github.com/users/fewiki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-03T07:36:50Z","updated_at":"2017-08-03T07:36:50Z","closed_at":null,"body":"like axios\r\nso can do general error\r\n```\r\n// Add a request interceptor\r\naxios.interceptors.request.use(function (config) {\r\n    // Do something before request is sent\r\n    return config;\r\n  }, function (error) {\r\n    // Do something with request error\r\n    return Promise.reject(error);\r\n  });\r\n\r\n// Add a response interceptor\r\naxios.interceptors.response.use(function (response) {\r\n    // Do something with response data\r\n    return response;\r\n  }, function (error) {\r\n    // Do something with response error\r\n    return Promise.reject(error);\r\n  });\r\n```"}}
{"actor":{"display_login":"fewiki"}}