Options
All
  • Public
  • Public/Protected
  • All
Menu

Intercepts and handles of events from outgoing HTTP request.

Hierarchy

  • ConnectionInterceptor

Implements

  • HttpInterceptor

Index

Constructors

Methods

Constructors

constructor

  • Initialization of the connection interceptor.

    Parameters

    • loggingService: LoggingService

      A service that provides logging capabilities.

    Returns ConnectionInterceptor

Methods

intercept

  • intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>
  • Intercepts HTTP requests.

    Parameters

    • request: HttpRequest<unknown>

      An outgoing HTTP request with an optional typed body.

    • next: HttpHandler

      The next HTTP handler or the outgoing request dispatcher.

    Returns Observable<HttpEvent<unknown>>

    The forwarded request.

Generated using TypeDoc