@isdk/web-fetcher 0.2.12 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.action.cn.md +197 -155
  2. package/README.action.extract.cn.md +263 -0
  3. package/README.action.extract.md +263 -0
  4. package/README.action.md +202 -147
  5. package/README.cn.md +25 -15
  6. package/README.engine.cn.md +118 -14
  7. package/README.engine.md +115 -14
  8. package/README.md +19 -10
  9. package/dist/index.d.mts +667 -50
  10. package/dist/index.d.ts +667 -50
  11. package/dist/index.js +1 -1
  12. package/dist/index.mjs +1 -1
  13. package/docs/README.md +19 -10
  14. package/docs/_media/README.action.md +202 -147
  15. package/docs/_media/README.cn.md +25 -15
  16. package/docs/_media/README.engine.md +115 -14
  17. package/docs/classes/CheerioFetchEngine.md +805 -135
  18. package/docs/classes/ClickAction.md +33 -33
  19. package/docs/classes/EvaluateAction.md +559 -0
  20. package/docs/classes/ExtractAction.md +33 -33
  21. package/docs/classes/FetchAction.md +39 -33
  22. package/docs/classes/FetchEngine.md +660 -122
  23. package/docs/classes/FetchSession.md +38 -16
  24. package/docs/classes/FillAction.md +33 -33
  25. package/docs/classes/GetContentAction.md +33 -33
  26. package/docs/classes/GotoAction.md +33 -33
  27. package/docs/classes/KeyboardPressAction.md +533 -0
  28. package/docs/classes/KeyboardTypeAction.md +533 -0
  29. package/docs/classes/MouseClickAction.md +533 -0
  30. package/docs/classes/MouseMoveAction.md +533 -0
  31. package/docs/classes/PauseAction.md +33 -33
  32. package/docs/classes/PlaywrightFetchEngine.md +820 -122
  33. package/docs/classes/SubmitAction.md +33 -33
  34. package/docs/classes/TrimAction.md +533 -0
  35. package/docs/classes/WaitForAction.md +33 -33
  36. package/docs/classes/WebFetcher.md +9 -9
  37. package/docs/enumerations/FetchActionResultStatus.md +4 -4
  38. package/docs/functions/fetchWeb.md +6 -6
  39. package/docs/globals.md +14 -0
  40. package/docs/interfaces/BaseFetchActionProperties.md +12 -12
  41. package/docs/interfaces/BaseFetchCollectorActionProperties.md +16 -16
  42. package/docs/interfaces/BaseFetcherProperties.md +32 -28
  43. package/docs/interfaces/Cookie.md +14 -14
  44. package/docs/interfaces/DispatchedEngineAction.md +4 -4
  45. package/docs/interfaces/EvaluateActionOptions.md +81 -0
  46. package/docs/interfaces/ExtractActionProperties.md +12 -12
  47. package/docs/interfaces/FetchActionInContext.md +15 -15
  48. package/docs/interfaces/FetchActionProperties.md +13 -13
  49. package/docs/interfaces/FetchActionResult.md +6 -6
  50. package/docs/interfaces/FetchContext.md +42 -38
  51. package/docs/interfaces/FetchEngineContext.md +37 -33
  52. package/docs/interfaces/FetchMetadata.md +5 -5
  53. package/docs/interfaces/FetchResponse.md +14 -14
  54. package/docs/interfaces/FetchReturnTypeRegistry.md +8 -8
  55. package/docs/interfaces/FetchSite.md +35 -31
  56. package/docs/interfaces/FetcherOptions.md +34 -30
  57. package/docs/interfaces/GotoActionOptions.md +14 -6
  58. package/docs/interfaces/KeyboardPressParams.md +25 -0
  59. package/docs/interfaces/KeyboardTypeParams.md +25 -0
  60. package/docs/interfaces/MouseClickParams.md +49 -0
  61. package/docs/interfaces/MouseMoveParams.md +41 -0
  62. package/docs/interfaces/PendingEngineRequest.md +3 -3
  63. package/docs/interfaces/StorageOptions.md +5 -5
  64. package/docs/interfaces/SubmitActionOptions.md +2 -2
  65. package/docs/interfaces/TrimActionOptions.md +27 -0
  66. package/docs/interfaces/WaitForActionOptions.md +5 -5
  67. package/docs/type-aliases/BaseFetchActionOptions.md +1 -1
  68. package/docs/type-aliases/BaseFetchCollectorOptions.md +1 -1
  69. package/docs/type-aliases/BrowserEngine.md +1 -1
  70. package/docs/type-aliases/FetchActionCapabilities.md +1 -1
  71. package/docs/type-aliases/FetchActionCapabilityMode.md +1 -1
  72. package/docs/type-aliases/FetchActionOptions.md +1 -1
  73. package/docs/type-aliases/FetchEngineAction.md +2 -2
  74. package/docs/type-aliases/FetchEngineType.md +1 -1
  75. package/docs/type-aliases/FetchReturnType.md +1 -1
  76. package/docs/type-aliases/FetchReturnTypeFor.md +1 -1
  77. package/docs/type-aliases/OnFetchPauseCallback.md +1 -1
  78. package/docs/type-aliases/ResourceType.md +1 -1
  79. package/docs/type-aliases/TrimPreset.md +13 -0
  80. package/docs/variables/DefaultFetcherProperties.md +1 -1
  81. package/docs/variables/FetcherOptionKeys.md +1 -1
  82. package/docs/variables/TRIM_PRESETS.md +11 -0
  83. package/package.json +11 -11
@@ -0,0 +1,559 @@
1
+ [**@isdk/web-fetcher**](../README.md)
2
+
3
+ ***
4
+
5
+ [@isdk/web-fetcher](../globals.md) / EvaluateAction
6
+
7
+ # Class: EvaluateAction
8
+
9
+ Defined in: [packages/web-fetcher/src/action/definitions/evaluate.ts:30](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/definitions/evaluate.ts#L30)
10
+
11
+ Action that evaluates a JavaScript function or expression in the context of the page.
12
+
13
+ ## Remarks
14
+
15
+ This action is cross-engine compatible. In Cheerio (HTTP) mode, it simulates a browser environment
16
+ by providing `window` and `document` objects linked to the Cheerio instance.
17
+
18
+ Key features:
19
+ - Supports async functions.
20
+ - Supports direct expressions (e.g., `"document.title"`).
21
+ - Detects URL changes and triggers navigation.
22
+ - Consistent parameter passing with Playwright (single argument).
23
+
24
+ ## Example
25
+
26
+ ```json
27
+ {
28
+ "action": "evaluate",
29
+ "params": {
30
+ "fn": "({ selector }) => document.querySelector(selector).textContent",
31
+ "args": { "selector": "h1" }
32
+ },
33
+ "storeAs": "pageTitle"
34
+ }
35
+ ```
36
+
37
+ ## Extends
38
+
39
+ - [`FetchAction`](FetchAction.md)
40
+
41
+ ## Constructors
42
+
43
+ ### Constructor
44
+
45
+ > **new EvaluateAction**(): `EvaluateAction`
46
+
47
+ #### Returns
48
+
49
+ `EvaluateAction`
50
+
51
+ #### Inherited from
52
+
53
+ [`FetchAction`](FetchAction.md).[`constructor`](FetchAction.md#constructor)
54
+
55
+ ## Properties
56
+
57
+ ### capabilities
58
+
59
+ > `static` **capabilities**: `object`
60
+
61
+ Defined in: [packages/web-fetcher/src/action/definitions/evaluate.ts:33](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/definitions/evaluate.ts#L33)
62
+
63
+ #### browser
64
+
65
+ > **browser**: `"native"`
66
+
67
+ #### http
68
+
69
+ > **http**: `"simulate"`
70
+
71
+ #### Overrides
72
+
73
+ [`FetchAction`](FetchAction.md).[`capabilities`](FetchAction.md#capabilities)
74
+
75
+ ***
76
+
77
+ ### id
78
+
79
+ > `static` **id**: `string` = `'evaluate'`
80
+
81
+ Defined in: [packages/web-fetcher/src/action/definitions/evaluate.ts:31](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/definitions/evaluate.ts#L31)
82
+
83
+ #### Overrides
84
+
85
+ [`FetchAction`](FetchAction.md).[`id`](FetchAction.md#id)
86
+
87
+ ***
88
+
89
+ ### returnType
90
+
91
+ > `static` **returnType**: `"any"`
92
+
93
+ Defined in: [packages/web-fetcher/src/action/definitions/evaluate.ts:32](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/definitions/evaluate.ts#L32)
94
+
95
+ #### Overrides
96
+
97
+ [`FetchAction`](FetchAction.md).[`returnType`](FetchAction.md#returntype)
98
+
99
+ ## Accessors
100
+
101
+ ### capabilities
102
+
103
+ #### Get Signature
104
+
105
+ > **get** **capabilities**(): [`FetchActionCapabilities`](../type-aliases/FetchActionCapabilities.md)
106
+
107
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:163](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L163)
108
+
109
+ ##### Returns
110
+
111
+ [`FetchActionCapabilities`](../type-aliases/FetchActionCapabilities.md)
112
+
113
+ #### Inherited from
114
+
115
+ [`FetchAction`](FetchAction.md).[`capabilities`](FetchAction.md#capabilities-1)
116
+
117
+ ***
118
+
119
+ ### id
120
+
121
+ #### Get Signature
122
+
123
+ > **get** **id**(): `string`
124
+
125
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:155](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L155)
126
+
127
+ ##### Returns
128
+
129
+ `string`
130
+
131
+ #### Inherited from
132
+
133
+ [`FetchAction`](FetchAction.md).[`id`](FetchAction.md#id-1)
134
+
135
+ ***
136
+
137
+ ### returnType
138
+
139
+ #### Get Signature
140
+
141
+ > **get** **returnType**(): [`FetchReturnType`](../type-aliases/FetchReturnType.md)
142
+
143
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:159](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L159)
144
+
145
+ ##### Returns
146
+
147
+ [`FetchReturnType`](../type-aliases/FetchReturnType.md)
148
+
149
+ #### Inherited from
150
+
151
+ [`FetchAction`](FetchAction.md).[`returnType`](FetchAction.md#returntype-1)
152
+
153
+ ## Methods
154
+
155
+ ### afterExec()
156
+
157
+ > **afterExec**(`context`, `options?`, `result?`, `scope?`): `Promise`\<`void`\>
158
+
159
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:391](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L391)
160
+
161
+ Action 结束生命周期
162
+ 负责:调用钩子、赋值lastResult, 触发事件、清理 stack、恢复 currentAction
163
+
164
+ #### Parameters
165
+
166
+ ##### context
167
+
168
+ [`FetchContext`](../interfaces/FetchContext.md)
169
+
170
+ ##### options?
171
+
172
+ [`BaseFetchCollectorActionProperties`](../interfaces/BaseFetchCollectorActionProperties.md)
173
+
174
+ ##### result?
175
+
176
+ [`FetchActionResult`](../interfaces/FetchActionResult.md)\<[`FetchReturnType`](../type-aliases/FetchReturnType.md)\>
177
+
178
+ ##### scope?
179
+
180
+ ###### collectors?
181
+
182
+ `CollectorsRuntime`
183
+
184
+ ###### entry
185
+
186
+ [`FetchActionInContext`](../interfaces/FetchActionInContext.md)
187
+
188
+ #### Returns
189
+
190
+ `Promise`\<`void`\>
191
+
192
+ #### Inherited from
193
+
194
+ [`FetchAction`](FetchAction.md).[`afterExec`](FetchAction.md#afterexec)
195
+
196
+ ***
197
+
198
+ ### beforeExec()
199
+
200
+ > **beforeExec**(`context`, `options?`): `Promise`\<\{ `collectors`: `CollectorsRuntime` \| `undefined`; `entry`: [`FetchActionInContext`](../interfaces/FetchActionInContext.md); \}\>
201
+
202
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:347](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L347)
203
+
204
+ Action 开始生命周期
205
+ 负责:初始化 stack、设置 currentAction、触发事件、调用钩子
206
+
207
+ #### Parameters
208
+
209
+ ##### context
210
+
211
+ [`FetchContext`](../interfaces/FetchContext.md)
212
+
213
+ ##### options?
214
+
215
+ [`FetchActionProperties`](../interfaces/FetchActionProperties.md)
216
+
217
+ #### Returns
218
+
219
+ `Promise`\<\{ `collectors`: `CollectorsRuntime` \| `undefined`; `entry`: [`FetchActionInContext`](../interfaces/FetchActionInContext.md); \}\>
220
+
221
+ #### Inherited from
222
+
223
+ [`FetchAction`](FetchAction.md).[`beforeExec`](FetchAction.md#beforeexec)
224
+
225
+ ***
226
+
227
+ ### delegateToEngine()
228
+
229
+ > `protected` **delegateToEngine**(`context`, `method`, ...`args`): `Promise`\<`any`\>
230
+
231
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:184](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L184)
232
+
233
+ #### Parameters
234
+
235
+ ##### context
236
+
237
+ [`FetchContext`](../interfaces/FetchContext.md)
238
+
239
+ ##### method
240
+
241
+ keyof [`FetchEngine`](FetchEngine.md)\<`any`, `any`, `any`\>
242
+
243
+ ##### args
244
+
245
+ ...`any`[]
246
+
247
+ #### Returns
248
+
249
+ `Promise`\<`any`\>
250
+
251
+ #### Inherited from
252
+
253
+ [`FetchAction`](FetchAction.md).[`delegateToEngine`](FetchAction.md#delegatetoengine)
254
+
255
+ ***
256
+
257
+ ### execute()
258
+
259
+ > **execute**\<`R`\>(`context`, `options?`): `Promise`\<[`FetchActionResult`](../interfaces/FetchActionResult.md)\<`R`\>\>
260
+
261
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:461](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L461)
262
+
263
+ #### Type Parameters
264
+
265
+ ##### R
266
+
267
+ `R` *extends* [`FetchReturnType`](../type-aliases/FetchReturnType.md) = `"any"`
268
+
269
+ #### Parameters
270
+
271
+ ##### context
272
+
273
+ [`FetchContext`](../interfaces/FetchContext.md)
274
+
275
+ ##### options?
276
+
277
+ [`FetchActionProperties`](../interfaces/FetchActionProperties.md)
278
+
279
+ #### Returns
280
+
281
+ `Promise`\<[`FetchActionResult`](../interfaces/FetchActionResult.md)\<`R`\>\>
282
+
283
+ #### Inherited from
284
+
285
+ [`FetchAction`](FetchAction.md).[`execute`](FetchAction.md#execute)
286
+
287
+ ***
288
+
289
+ ### getCapability()
290
+
291
+ > **getCapability**(`mode?`): [`FetchActionCapabilityMode`](../type-aliases/FetchActionCapabilityMode.md)
292
+
293
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:150](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L150)
294
+
295
+ #### Parameters
296
+
297
+ ##### mode?
298
+
299
+ [`FetchEngineType`](../type-aliases/FetchEngineType.md)
300
+
301
+ #### Returns
302
+
303
+ [`FetchActionCapabilityMode`](../type-aliases/FetchActionCapabilityMode.md)
304
+
305
+ #### Inherited from
306
+
307
+ [`FetchAction`](FetchAction.md).[`getCapability`](FetchAction.md#getcapability)
308
+
309
+ ***
310
+
311
+ ### installCollectors()
312
+
313
+ > `protected` **installCollectors**(`context`, `options?`): `CollectorsRuntime` \| `undefined`
314
+
315
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:201](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L201)
316
+
317
+ #### Parameters
318
+
319
+ ##### context
320
+
321
+ [`FetchContext`](../interfaces/FetchContext.md)
322
+
323
+ ##### options?
324
+
325
+ [`FetchActionProperties`](../interfaces/FetchActionProperties.md)
326
+
327
+ #### Returns
328
+
329
+ `CollectorsRuntime` \| `undefined`
330
+
331
+ #### Inherited from
332
+
333
+ [`FetchAction`](FetchAction.md).[`installCollectors`](FetchAction.md#installcollectors)
334
+
335
+ ***
336
+
337
+ ### onAfterExec()?
338
+
339
+ > `protected` `optional` **onAfterExec**(`context`, `options?`): `void` \| `Promise`\<`void`\>
340
+
341
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:172](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L172)
342
+
343
+ #### Parameters
344
+
345
+ ##### context
346
+
347
+ [`FetchContext`](../interfaces/FetchContext.md)
348
+
349
+ ##### options?
350
+
351
+ [`FetchActionProperties`](../interfaces/FetchActionProperties.md)
352
+
353
+ #### Returns
354
+
355
+ `void` \| `Promise`\<`void`\>
356
+
357
+ #### Inherited from
358
+
359
+ [`FetchAction`](FetchAction.md).[`onAfterExec`](FetchAction.md#onafterexec)
360
+
361
+ ***
362
+
363
+ ### onBeforeExec()?
364
+
365
+ > `protected` `optional` **onBeforeExec**(`context`, `options?`): `void` \| `Promise`\<`void`\>
366
+
367
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:168](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L168)
368
+
369
+ #### Parameters
370
+
371
+ ##### context
372
+
373
+ [`FetchContext`](../interfaces/FetchContext.md)
374
+
375
+ ##### options?
376
+
377
+ [`FetchActionProperties`](../interfaces/FetchActionProperties.md)
378
+
379
+ #### Returns
380
+
381
+ `void` \| `Promise`\<`void`\>
382
+
383
+ #### Inherited from
384
+
385
+ [`FetchAction`](FetchAction.md).[`onBeforeExec`](FetchAction.md#onbeforeexec)
386
+
387
+ ***
388
+
389
+ ### onExecute()
390
+
391
+ > **onExecute**(`context`, `options?`): `Promise`\<`any`\>
392
+
393
+ Defined in: [packages/web-fetcher/src/action/definitions/evaluate.ts:38](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/definitions/evaluate.ts#L38)
394
+
395
+ #### Parameters
396
+
397
+ ##### context
398
+
399
+ [`FetchContext`](../interfaces/FetchContext.md)
400
+
401
+ ##### options?
402
+
403
+ [`BaseFetchActionProperties`](../interfaces/BaseFetchActionProperties.md)
404
+
405
+ #### Returns
406
+
407
+ `Promise`\<`any`\>
408
+
409
+ #### Overrides
410
+
411
+ [`FetchAction`](FetchAction.md).[`onExecute`](FetchAction.md#onexecute)
412
+
413
+ ***
414
+
415
+ ### create()
416
+
417
+ #### Call Signature
418
+
419
+ > `static` **create**(`id`): [`FetchAction`](FetchAction.md) \| `undefined`
420
+
421
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:113](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L113)
422
+
423
+ ##### Parameters
424
+
425
+ ###### id
426
+
427
+ `_RequireAtLeastOne`
428
+
429
+ ##### Returns
430
+
431
+ [`FetchAction`](FetchAction.md) \| `undefined`
432
+
433
+ ##### Inherited from
434
+
435
+ [`FetchAction`](FetchAction.md).[`create`](FetchAction.md#create)
436
+
437
+ #### Call Signature
438
+
439
+ > `static` **create**(`id`): [`FetchAction`](FetchAction.md) \| `undefined`
440
+
441
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:114](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L114)
442
+
443
+ ##### Parameters
444
+
445
+ ###### id
446
+
447
+ `string`
448
+
449
+ ##### Returns
450
+
451
+ [`FetchAction`](FetchAction.md) \| `undefined`
452
+
453
+ ##### Inherited from
454
+
455
+ [`FetchAction`](FetchAction.md).[`create`](FetchAction.md#create)
456
+
457
+ ***
458
+
459
+ ### get()
460
+
461
+ > `static` **get**(`id`): *typeof* [`FetchAction`](FetchAction.md) \| `undefined`
462
+
463
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:109](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L109)
464
+
465
+ #### Parameters
466
+
467
+ ##### id
468
+
469
+ `string`
470
+
471
+ #### Returns
472
+
473
+ *typeof* [`FetchAction`](FetchAction.md) \| `undefined`
474
+
475
+ #### Inherited from
476
+
477
+ [`FetchAction`](FetchAction.md).[`get`](FetchAction.md#get)
478
+
479
+ ***
480
+
481
+ ### getCapability()
482
+
483
+ > `static` **getCapability**(`mode?`): [`FetchActionCapabilityMode`](../type-aliases/FetchActionCapabilityMode.md)
484
+
485
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:146](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L146)
486
+
487
+ #### Parameters
488
+
489
+ ##### mode?
490
+
491
+ [`FetchEngineType`](../type-aliases/FetchEngineType.md)
492
+
493
+ #### Returns
494
+
495
+ [`FetchActionCapabilityMode`](../type-aliases/FetchActionCapabilityMode.md)
496
+
497
+ #### Inherited from
498
+
499
+ [`FetchAction`](FetchAction.md).[`getCapability`](FetchAction.md#getcapability-2)
500
+
501
+ ***
502
+
503
+ ### has()
504
+
505
+ > `static` **has**(`name`): `boolean`
506
+
507
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:130](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L130)
508
+
509
+ #### Parameters
510
+
511
+ ##### name
512
+
513
+ `string`
514
+
515
+ #### Returns
516
+
517
+ `boolean`
518
+
519
+ #### Inherited from
520
+
521
+ [`FetchAction`](FetchAction.md).[`has`](FetchAction.md#has)
522
+
523
+ ***
524
+
525
+ ### list()
526
+
527
+ > `static` **list**(): `string`[]
528
+
529
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:134](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L134)
530
+
531
+ #### Returns
532
+
533
+ `string`[]
534
+
535
+ #### Inherited from
536
+
537
+ [`FetchAction`](FetchAction.md).[`list`](FetchAction.md#list)
538
+
539
+ ***
540
+
541
+ ### register()
542
+
543
+ > `static` **register**(`actionClass`): `void`
544
+
545
+ Defined in: [packages/web-fetcher/src/action/fetch-action.ts:103](https://github.com/isdk/web-fetcher.js/blob/e691a2370f59d15979b47994c8ca14d7b7d2edd3/src/action/fetch-action.ts#L103)
546
+
547
+ #### Parameters
548
+
549
+ ##### actionClass
550
+
551
+ *typeof* [`FetchAction`](FetchAction.md)
552
+
553
+ #### Returns
554
+
555
+ `void`
556
+
557
+ #### Inherited from
558
+
559
+ [`FetchAction`](FetchAction.md).[`register`](FetchAction.md#register)