• Overview
@angular/common/http

HttpInterceptor

interface

Intercepts and handles an HttpRequest or HttpResponse.

  
    interface HttpInterceptor {}
  
  

intercept

Observable<HttpEvent<any>>

Identifies and handles a given HTTP request.

@paramreqHttpRequest<any>

The outgoing request object to handle.

@paramnextHttpHandler

The next interceptor in the chain, or the backend if no interceptors remain in the chain.

@returnsObservable<HttpEvent<any>>
Jump to details