angular / 15 / api / common / http / withinterceptors.html

withInterceptors

function

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

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

Parameters
interceptorFns HttpInterceptorFn[]
Returns

HttpFeature<HttpFeatureKind.Interceptors>

See also

© 2010–2023 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v15.angular.io/api/common/http/withInterceptors