-
Notifications
You must be signed in to change notification settings - Fork 0
Client
Pavel Koch edited this page Mar 2, 2019
·
7 revisions
import { Client } from 'awi'Provides a way to intercept any request directly. The callback takes in an instance of Request and alters its contents. The return value is disregarded.
-
interceptor: Interceptor- The function that alters the event -
priority?: number- The priority of the interceptor, interceptors with higher priority are executed first
Client - The instance for chaining
Perform the transformed request.
-
T extends Response- The desired response type
Promise<T> - The desired response
-
HttpException- If somethig goes wrong when executing the request