Skip to content
Compare
Choose a tag to compare
@build-travis-ci build-travis-ci released this 05 Jul 08:55
· 576 commits to master since this release
623a0a6

Minor Changes

  • 67144d2: feat(http): add the possibility to add global interceptors for every calls that got through @talend/http calls

    Usage:

    import { addHttpResponseInterceptor, HTTP_STATUS } from '@talend/http';
    
    addHttpResponseInterceptor('logout', (response: Response): void => {
    	if (response.status === HTTP_STATUS.UNAUTHORIZED) {
    		logout();
    	}
    });