• Overview
@angular/common/http

withInterceptors

function
stable

Adds one or more functional-style HTTP interceptors to the configuration of the HttpClient instance.

API

function withInterceptors(
  interceptorFns: HttpInterceptorFn[],
): HttpFeature<HttpFeatureKind.Interceptors>;

withInterceptors

Adds one or more functional-style HTTP interceptors to the configuration of the HttpClient instance.

@paraminterceptorFnsHttpInterceptorFn[]
Jump to details