UNPKG

@anexia/ngx-interceptor-tools

Version:

This library provides a toolset for common http interceptor tasks, like request matching.

10 lines (9 loc) 465 B
import { RequestMatchStrategy } from "../interfaces/request-match-strategy"; import { HttpRequest } from "@angular/common/http"; import { RequestSelectorStrategy } from "../interfaces/request-selector-strategy"; export declare class RegExMatcher implements RequestMatchStrategy { patterns: RegExp[]; selector: RequestSelectorStrategy; constructor(patterns: RegExp[], selector?: RequestSelectorStrategy); match(request: HttpRequest<any>): boolean; }