Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

interceptors return function with Promise.reject #678

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Commits on Mar 2, 2018

  1. interceptors return function with Promise.reject

    the reject  add to every response handler.
    when interceptor next function params return a Promise.reject() the first response handler will catch it and run reject.
    if the reject not throw new error the next response handlers will still run resolve function with the reject  return value
    laozhujia committed Mar 2, 2018
    Configuration menu
    Copy the full SHA
    59bb916 View commit details
    Browse the repository at this point in the history