Options
All
  • Public
  • Public/Protected
  • All
Menu

Intercepts HTTP requests and handles some specified requests internally. Provides a backend that can handle requests for certain data items.

Hierarchy

  • MockBackendInterceptor

Implements

  • HttpInterceptor

Index

Constructors

Methods

Constructors

constructor

Methods

intercept

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

    Parameters

    • request: HttpRequest<any>

      An outgoing HTTP request with an optional typed body.

    • next: HttpHandler

      The next HTTP handler or the outgoing request dispatcher.

    Returns Observable<HttpEvent<any>>

    The response from the resolved request.

Generated using TypeDoc