-
Notifications
You must be signed in to change notification settings - Fork 0
Interceptor
Pavel Koch edited this page Mar 2, 2019
·
2 revisions
import { Interceptor } from 'awi'This is the type used for all interceptor functions.
The heart of Awi - the interceptor type used in every .use call. It takes the current state of the request and the user's callback edits the contents.
Parameters
-
request: Request- The request object to intercept
Returns
Promise<any> - A promise, note that the return value is disregarded