Documentation / @ember-data/request-utils / handlers / Gate
Class: Gate
Defined in: warp-drive-packages/utilities/declarations/-private/handlers/gated.d.ts:13
Implements
Constructors
Constructor
ts
new Gate(handler, checkFn): Gate;
Defined in: warp-drive-packages/utilities/declarations/-private/handlers/gated.d.ts:16
Parameters
handler
checkFn
CheckFn
Returns
Gate
Methods
request()
ts
request<T>(context, next):
| Promise<
| T
| StructuredDataDocument<T>>
| Future<T>;
Defined in: warp-drive-packages/utilities/declarations/-private/handlers/gated.d.ts:17
Method to implement to handle requests. Receives the request context and a nextFn to call to pass-along the request to other handlers.
Type Parameters
T
T
= unknown
Parameters
context
next
NextFn
<T
>
Returns
| Promise
< | T
| StructuredDataDocument
<T
>> | Future
<T
>
Implementation of
Properties
checkFn
ts
checkFn: CheckFn;
Defined in: warp-drive-packages/utilities/declarations/-private/handlers/gated.d.ts:15
handler
ts
handler: Handler;
Defined in: warp-drive-packages/utilities/declarations/-private/handlers/gated.d.ts:14