@isdk/web-fetcher 0.2.0
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.
- package/README.action.cn.md +469 -0
- package/README.action.md +452 -0
- package/README.cn.md +147 -0
- package/README.engine.cn.md +262 -0
- package/README.engine.md +262 -0
- package/README.md +147 -0
- package/dist/index.d.mts +1603 -0
- package/dist/index.d.ts +1603 -0
- package/dist/index.js +1 -0
- package/dist/index.mjs +1 -0
- package/docs/README.md +151 -0
- package/docs/_media/LICENSE-MIT +22 -0
- package/docs/_media/README.action.md +452 -0
- package/docs/_media/README.cn.md +147 -0
- package/docs/_media/README.engine.md +262 -0
- package/docs/classes/CheerioFetchEngine.md +1447 -0
- package/docs/classes/ClickAction.md +533 -0
- package/docs/classes/ExtractAction.md +533 -0
- package/docs/classes/FetchAction.md +444 -0
- package/docs/classes/FetchEngine.md +1230 -0
- package/docs/classes/FetchSession.md +111 -0
- package/docs/classes/FillAction.md +533 -0
- package/docs/classes/GetContentAction.md +533 -0
- package/docs/classes/GotoAction.md +537 -0
- package/docs/classes/PauseAction.md +533 -0
- package/docs/classes/PlaywrightFetchEngine.md +1437 -0
- package/docs/classes/SubmitAction.md +533 -0
- package/docs/classes/WaitForAction.md +533 -0
- package/docs/classes/WebFetcher.md +85 -0
- package/docs/enumerations/FetchActionResultStatus.md +40 -0
- package/docs/functions/fetchWeb.md +43 -0
- package/docs/globals.md +72 -0
- package/docs/interfaces/BaseFetchActionProperties.md +83 -0
- package/docs/interfaces/BaseFetchCollectorActionProperties.md +145 -0
- package/docs/interfaces/BaseFetcherProperties.md +206 -0
- package/docs/interfaces/Cookie.md +142 -0
- package/docs/interfaces/DispatchedEngineAction.md +60 -0
- package/docs/interfaces/ExtractActionProperties.md +113 -0
- package/docs/interfaces/FetchActionInContext.md +149 -0
- package/docs/interfaces/FetchActionProperties.md +125 -0
- package/docs/interfaces/FetchActionResult.md +55 -0
- package/docs/interfaces/FetchContext.md +424 -0
- package/docs/interfaces/FetchEngineContext.md +328 -0
- package/docs/interfaces/FetchMetadata.md +73 -0
- package/docs/interfaces/FetchResponse.md +105 -0
- package/docs/interfaces/FetchReturnTypeRegistry.md +57 -0
- package/docs/interfaces/FetchSite.md +320 -0
- package/docs/interfaces/FetcherOptions.md +300 -0
- package/docs/interfaces/GotoActionOptions.md +66 -0
- package/docs/interfaces/PendingEngineRequest.md +51 -0
- package/docs/interfaces/SubmitActionOptions.md +23 -0
- package/docs/interfaces/WaitForActionOptions.md +39 -0
- package/docs/type-aliases/BaseFetchActionOptions.md +11 -0
- package/docs/type-aliases/BaseFetchCollectorOptions.md +11 -0
- package/docs/type-aliases/BrowserEngine.md +11 -0
- package/docs/type-aliases/FetchActionCapabilities.md +11 -0
- package/docs/type-aliases/FetchActionCapabilityMode.md +11 -0
- package/docs/type-aliases/FetchActionOptions.md +11 -0
- package/docs/type-aliases/FetchEngineAction.md +18 -0
- package/docs/type-aliases/FetchEngineType.md +11 -0
- package/docs/type-aliases/FetchReturnType.md +11 -0
- package/docs/type-aliases/FetchReturnTypeFor.md +17 -0
- package/docs/type-aliases/OnFetchPauseCallback.md +23 -0
- package/docs/type-aliases/ResourceType.md +11 -0
- package/docs/variables/DefaultFetcherProperties.md +11 -0
- package/package.json +90 -0
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
[**@isdk/web-fetcher**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/web-fetcher](../globals.md) / FetchEngineContext
|
|
6
|
+
|
|
7
|
+
# Interface: FetchEngineContext
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:24](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L24)
|
|
10
|
+
|
|
11
|
+
## Extends
|
|
12
|
+
|
|
13
|
+
- [`BaseFetcherProperties`](BaseFetcherProperties.md)
|
|
14
|
+
|
|
15
|
+
## Extended by
|
|
16
|
+
|
|
17
|
+
- [`FetchContext`](FetchContext.md)
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### antibot?
|
|
22
|
+
|
|
23
|
+
> `optional` **antibot**: `boolean`
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:37](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L37)
|
|
26
|
+
|
|
27
|
+
#### Inherited from
|
|
28
|
+
|
|
29
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`antibot`](BaseFetcherProperties.md#antibot)
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### blockResources?
|
|
34
|
+
|
|
35
|
+
> `optional` **blockResources**: `string`[]
|
|
36
|
+
|
|
37
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:46](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L46)
|
|
38
|
+
|
|
39
|
+
#### Inherited from
|
|
40
|
+
|
|
41
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`blockResources`](BaseFetcherProperties.md#blockresources)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### browser?
|
|
46
|
+
|
|
47
|
+
> `optional` **browser**: `object`
|
|
48
|
+
|
|
49
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:52](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L52)
|
|
50
|
+
|
|
51
|
+
#### engine?
|
|
52
|
+
|
|
53
|
+
> `optional` **engine**: [`BrowserEngine`](../type-aliases/BrowserEngine.md)
|
|
54
|
+
|
|
55
|
+
浏览器引擎,默认为 playwright
|
|
56
|
+
|
|
57
|
+
- `playwright`: 使用 Playwright 引擎
|
|
58
|
+
- `puppeteer`: 使用 Puppeteer 引擎
|
|
59
|
+
|
|
60
|
+
#### headless?
|
|
61
|
+
|
|
62
|
+
> `optional` **headless**: `boolean`
|
|
63
|
+
|
|
64
|
+
#### waitUntil?
|
|
65
|
+
|
|
66
|
+
> `optional` **waitUntil**: `"load"` \| `"domcontentloaded"` \| `"networkidle"` \| `"commit"`
|
|
67
|
+
|
|
68
|
+
#### Inherited from
|
|
69
|
+
|
|
70
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`browser`](BaseFetcherProperties.md#browser)
|
|
71
|
+
|
|
72
|
+
***
|
|
73
|
+
|
|
74
|
+
### cookies?
|
|
75
|
+
|
|
76
|
+
> `optional` **cookies**: [`Cookie`](Cookie.md)[]
|
|
77
|
+
|
|
78
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:40](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L40)
|
|
79
|
+
|
|
80
|
+
#### Inherited from
|
|
81
|
+
|
|
82
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`cookies`](BaseFetcherProperties.md#cookies)
|
|
83
|
+
|
|
84
|
+
***
|
|
85
|
+
|
|
86
|
+
### delayBetweenRequestsMs?
|
|
87
|
+
|
|
88
|
+
> `optional` **delayBetweenRequestsMs**: `number`
|
|
89
|
+
|
|
90
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:72](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L72)
|
|
91
|
+
|
|
92
|
+
#### Inherited from
|
|
93
|
+
|
|
94
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`delayBetweenRequestsMs`](BaseFetcherProperties.md#delaybetweenrequestsms)
|
|
95
|
+
|
|
96
|
+
***
|
|
97
|
+
|
|
98
|
+
### enableSmart?
|
|
99
|
+
|
|
100
|
+
> `optional` **enableSmart**: `boolean`
|
|
101
|
+
|
|
102
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:35](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L35)
|
|
103
|
+
|
|
104
|
+
#### Inherited from
|
|
105
|
+
|
|
106
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`enableSmart`](BaseFetcherProperties.md#enablesmart)
|
|
107
|
+
|
|
108
|
+
***
|
|
109
|
+
|
|
110
|
+
### engine?
|
|
111
|
+
|
|
112
|
+
> `optional` **engine**: `string`
|
|
113
|
+
|
|
114
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:34](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L34)
|
|
115
|
+
|
|
116
|
+
抓取模式
|
|
117
|
+
|
|
118
|
+
- `http`: 使用 HTTP 进行抓取
|
|
119
|
+
- `browser`: 使用浏览器进行抓取
|
|
120
|
+
- `auto`: auto 会走“智能探测”选择 http 或 browser, 但是如果没有启用 smart,并且在站点注册表中没有,那么则等价为 http.
|
|
121
|
+
|
|
122
|
+
#### Inherited from
|
|
123
|
+
|
|
124
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`engine`](BaseFetcherProperties.md#engine)
|
|
125
|
+
|
|
126
|
+
***
|
|
127
|
+
|
|
128
|
+
### finalUrl?
|
|
129
|
+
|
|
130
|
+
> `optional` **finalUrl**: `string`
|
|
131
|
+
|
|
132
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:27](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L27)
|
|
133
|
+
|
|
134
|
+
***
|
|
135
|
+
|
|
136
|
+
### headers?
|
|
137
|
+
|
|
138
|
+
> `optional` **headers**: `Record`\<`string`, `string`\>
|
|
139
|
+
|
|
140
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:39](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L39)
|
|
141
|
+
|
|
142
|
+
#### Inherited from
|
|
143
|
+
|
|
144
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`headers`](BaseFetcherProperties.md#headers)
|
|
145
|
+
|
|
146
|
+
***
|
|
147
|
+
|
|
148
|
+
### http?
|
|
149
|
+
|
|
150
|
+
> `optional` **http**: `object`
|
|
151
|
+
|
|
152
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:64](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L64)
|
|
153
|
+
|
|
154
|
+
#### body?
|
|
155
|
+
|
|
156
|
+
> `optional` **body**: `any`
|
|
157
|
+
|
|
158
|
+
#### method?
|
|
159
|
+
|
|
160
|
+
> `optional` **method**: `"GET"` \| `"POST"` \| `"PUT"` \| `"DELETE"` \| `"PATCH"`
|
|
161
|
+
|
|
162
|
+
#### Inherited from
|
|
163
|
+
|
|
164
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`http`](BaseFetcherProperties.md#http)
|
|
165
|
+
|
|
166
|
+
***
|
|
167
|
+
|
|
168
|
+
### id
|
|
169
|
+
|
|
170
|
+
> **id**: `string`
|
|
171
|
+
|
|
172
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:25](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L25)
|
|
173
|
+
|
|
174
|
+
***
|
|
175
|
+
|
|
176
|
+
### ignoreSslErrors?
|
|
177
|
+
|
|
178
|
+
> `optional` **ignoreSslErrors**: `boolean`
|
|
179
|
+
|
|
180
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:50](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L50)
|
|
181
|
+
|
|
182
|
+
#### Inherited from
|
|
183
|
+
|
|
184
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`ignoreSslErrors`](BaseFetcherProperties.md#ignoresslerrors)
|
|
185
|
+
|
|
186
|
+
***
|
|
187
|
+
|
|
188
|
+
### internal
|
|
189
|
+
|
|
190
|
+
> **internal**: `BaseFetchContextInteralState`
|
|
191
|
+
|
|
192
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:32](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L32)
|
|
193
|
+
|
|
194
|
+
***
|
|
195
|
+
|
|
196
|
+
### lastResponse?
|
|
197
|
+
|
|
198
|
+
> `optional` **lastResponse**: [`FetchResponse`](FetchResponse.md)
|
|
199
|
+
|
|
200
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:29](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L29)
|
|
201
|
+
|
|
202
|
+
***
|
|
203
|
+
|
|
204
|
+
### lastResult?
|
|
205
|
+
|
|
206
|
+
> `optional` **lastResult**: [`FetchActionResult`](FetchActionResult.md)\<[`FetchReturnType`](../type-aliases/FetchReturnType.md)\>
|
|
207
|
+
|
|
208
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:30](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L30)
|
|
209
|
+
|
|
210
|
+
***
|
|
211
|
+
|
|
212
|
+
### maxConcurrency?
|
|
213
|
+
|
|
214
|
+
> `optional` **maxConcurrency**: `number`
|
|
215
|
+
|
|
216
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:70](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L70)
|
|
217
|
+
|
|
218
|
+
#### Inherited from
|
|
219
|
+
|
|
220
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`maxConcurrency`](BaseFetcherProperties.md#maxconcurrency)
|
|
221
|
+
|
|
222
|
+
***
|
|
223
|
+
|
|
224
|
+
### maxRequestsPerMinute?
|
|
225
|
+
|
|
226
|
+
> `optional` **maxRequestsPerMinute**: `number`
|
|
227
|
+
|
|
228
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:71](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L71)
|
|
229
|
+
|
|
230
|
+
#### Inherited from
|
|
231
|
+
|
|
232
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`maxRequestsPerMinute`](BaseFetcherProperties.md#maxrequestsperminute)
|
|
233
|
+
|
|
234
|
+
***
|
|
235
|
+
|
|
236
|
+
### proxy?
|
|
237
|
+
|
|
238
|
+
> `optional` **proxy**: `string` \| `string`[]
|
|
239
|
+
|
|
240
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:44](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L44)
|
|
241
|
+
|
|
242
|
+
#### Inherited from
|
|
243
|
+
|
|
244
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`proxy`](BaseFetcherProperties.md#proxy)
|
|
245
|
+
|
|
246
|
+
***
|
|
247
|
+
|
|
248
|
+
### retries?
|
|
249
|
+
|
|
250
|
+
> `optional` **retries**: `number`
|
|
251
|
+
|
|
252
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:73](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L73)
|
|
253
|
+
|
|
254
|
+
#### Inherited from
|
|
255
|
+
|
|
256
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`retries`](BaseFetcherProperties.md#retries)
|
|
257
|
+
|
|
258
|
+
***
|
|
259
|
+
|
|
260
|
+
### reuseCookies?
|
|
261
|
+
|
|
262
|
+
> `optional` **reuseCookies**: `boolean`
|
|
263
|
+
|
|
264
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:41](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L41)
|
|
265
|
+
|
|
266
|
+
#### Inherited from
|
|
267
|
+
|
|
268
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`reuseCookies`](BaseFetcherProperties.md#reusecookies)
|
|
269
|
+
|
|
270
|
+
***
|
|
271
|
+
|
|
272
|
+
### sites?
|
|
273
|
+
|
|
274
|
+
> `optional` **sites**: [`FetchSite`](FetchSite.md)[]
|
|
275
|
+
|
|
276
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:75](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L75)
|
|
277
|
+
|
|
278
|
+
#### Inherited from
|
|
279
|
+
|
|
280
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`sites`](BaseFetcherProperties.md#sites)
|
|
281
|
+
|
|
282
|
+
***
|
|
283
|
+
|
|
284
|
+
### throwHttpErrors?
|
|
285
|
+
|
|
286
|
+
> `optional` **throwHttpErrors**: `boolean`
|
|
287
|
+
|
|
288
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:42](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L42)
|
|
289
|
+
|
|
290
|
+
#### Inherited from
|
|
291
|
+
|
|
292
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`throwHttpErrors`](BaseFetcherProperties.md#throwhttperrors)
|
|
293
|
+
|
|
294
|
+
***
|
|
295
|
+
|
|
296
|
+
### timeoutMs?
|
|
297
|
+
|
|
298
|
+
> `optional` **timeoutMs**: `number`
|
|
299
|
+
|
|
300
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:69](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L69)
|
|
301
|
+
|
|
302
|
+
#### Inherited from
|
|
303
|
+
|
|
304
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`timeoutMs`](BaseFetcherProperties.md#timeoutms)
|
|
305
|
+
|
|
306
|
+
***
|
|
307
|
+
|
|
308
|
+
### url?
|
|
309
|
+
|
|
310
|
+
> `optional` **url**: `string`
|
|
311
|
+
|
|
312
|
+
Defined in: [packages/web-fetcher/src/core/context.ts:26](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/context.ts#L26)
|
|
313
|
+
|
|
314
|
+
#### Overrides
|
|
315
|
+
|
|
316
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`url`](BaseFetcherProperties.md#url)
|
|
317
|
+
|
|
318
|
+
***
|
|
319
|
+
|
|
320
|
+
### useSiteRegistry?
|
|
321
|
+
|
|
322
|
+
> `optional` **useSiteRegistry**: `boolean`
|
|
323
|
+
|
|
324
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:36](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L36)
|
|
325
|
+
|
|
326
|
+
#### Inherited from
|
|
327
|
+
|
|
328
|
+
[`BaseFetcherProperties`](BaseFetcherProperties.md).[`useSiteRegistry`](BaseFetcherProperties.md#usesiteregistry)
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
[**@isdk/web-fetcher**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/web-fetcher](../globals.md) / FetchMetadata
|
|
6
|
+
|
|
7
|
+
# Interface: FetchMetadata
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:99](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L99)
|
|
10
|
+
|
|
11
|
+
## Indexable
|
|
12
|
+
|
|
13
|
+
\[`key`: `string`\]: `any`
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### engine?
|
|
18
|
+
|
|
19
|
+
> `optional` **engine**: [`BrowserEngine`](../type-aliases/BrowserEngine.md)
|
|
20
|
+
|
|
21
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:101](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L101)
|
|
22
|
+
|
|
23
|
+
***
|
|
24
|
+
|
|
25
|
+
### mode
|
|
26
|
+
|
|
27
|
+
> **mode**: [`FetchEngineType`](../type-aliases/FetchEngineType.md)
|
|
28
|
+
|
|
29
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:100](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L100)
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### proxy?
|
|
34
|
+
|
|
35
|
+
> `optional` **proxy**: `string`
|
|
36
|
+
|
|
37
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:111](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L111)
|
|
38
|
+
|
|
39
|
+
***
|
|
40
|
+
|
|
41
|
+
### timings?
|
|
42
|
+
|
|
43
|
+
> `optional` **timings**: `object`
|
|
44
|
+
|
|
45
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:102](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L102)
|
|
46
|
+
|
|
47
|
+
#### dns?
|
|
48
|
+
|
|
49
|
+
> `optional` **dns**: `number`
|
|
50
|
+
|
|
51
|
+
#### download?
|
|
52
|
+
|
|
53
|
+
> `optional` **download**: `number`
|
|
54
|
+
|
|
55
|
+
#### firstByte?
|
|
56
|
+
|
|
57
|
+
> `optional` **firstByte**: `number`
|
|
58
|
+
|
|
59
|
+
#### start
|
|
60
|
+
|
|
61
|
+
> **start**: `number`
|
|
62
|
+
|
|
63
|
+
#### tcp?
|
|
64
|
+
|
|
65
|
+
> `optional` **tcp**: `number`
|
|
66
|
+
|
|
67
|
+
#### total
|
|
68
|
+
|
|
69
|
+
> **total**: `number`
|
|
70
|
+
|
|
71
|
+
#### ttfb?
|
|
72
|
+
|
|
73
|
+
> `optional` **ttfb**: `number`
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
[**@isdk/web-fetcher**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/web-fetcher](../globals.md) / FetchResponse
|
|
6
|
+
|
|
7
|
+
# Interface: FetchResponse
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:116](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L116)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### body?
|
|
14
|
+
|
|
15
|
+
> `optional` **body**: `string` \| `Buffer`\<`ArrayBufferLike`\>
|
|
16
|
+
|
|
17
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:123](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L123)
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### contentType?
|
|
22
|
+
|
|
23
|
+
> `optional` **contentType**: `string`
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:122](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L122)
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### cookies?
|
|
30
|
+
|
|
31
|
+
> `optional` **cookies**: [`Cookie`](Cookie.md)[]
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:127](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L127)
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### finalUrl
|
|
38
|
+
|
|
39
|
+
> **finalUrl**: `string`
|
|
40
|
+
|
|
41
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:118](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L118)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### headers
|
|
46
|
+
|
|
47
|
+
> **headers**: `Record`\<`string`, `string`\>
|
|
48
|
+
|
|
49
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:121](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L121)
|
|
50
|
+
|
|
51
|
+
***
|
|
52
|
+
|
|
53
|
+
### html?
|
|
54
|
+
|
|
55
|
+
> `optional` **html**: `string`
|
|
56
|
+
|
|
57
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:124](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L124)
|
|
58
|
+
|
|
59
|
+
***
|
|
60
|
+
|
|
61
|
+
### json?
|
|
62
|
+
|
|
63
|
+
> `optional` **json**: `any`
|
|
64
|
+
|
|
65
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:126](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L126)
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
### metadata?
|
|
70
|
+
|
|
71
|
+
> `optional` **metadata**: [`FetchMetadata`](FetchMetadata.md)
|
|
72
|
+
|
|
73
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:128](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L128)
|
|
74
|
+
|
|
75
|
+
***
|
|
76
|
+
|
|
77
|
+
### statusCode?
|
|
78
|
+
|
|
79
|
+
> `optional` **statusCode**: `number`
|
|
80
|
+
|
|
81
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:119](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L119)
|
|
82
|
+
|
|
83
|
+
***
|
|
84
|
+
|
|
85
|
+
### statusText?
|
|
86
|
+
|
|
87
|
+
> `optional` **statusText**: `string`
|
|
88
|
+
|
|
89
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:120](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L120)
|
|
90
|
+
|
|
91
|
+
***
|
|
92
|
+
|
|
93
|
+
### text?
|
|
94
|
+
|
|
95
|
+
> `optional` **text**: `string`
|
|
96
|
+
|
|
97
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:125](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L125)
|
|
98
|
+
|
|
99
|
+
***
|
|
100
|
+
|
|
101
|
+
### url
|
|
102
|
+
|
|
103
|
+
> **url**: `string`
|
|
104
|
+
|
|
105
|
+
Defined in: [packages/web-fetcher/src/core/types.ts:117](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/types.ts#L117)
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
[**@isdk/web-fetcher**](../README.md)
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@isdk/web-fetcher](../globals.md) / FetchReturnTypeRegistry
|
|
6
|
+
|
|
7
|
+
# Interface: FetchReturnTypeRegistry
|
|
8
|
+
|
|
9
|
+
Defined in: [packages/web-fetcher/src/core/fetch-return-type.ts:7](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/fetch-return-type.ts#L7)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### any
|
|
14
|
+
|
|
15
|
+
> **any**: `any`
|
|
16
|
+
|
|
17
|
+
Defined in: [packages/web-fetcher/src/core/fetch-return-type.ts:12](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/fetch-return-type.ts#L12)
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### context
|
|
22
|
+
|
|
23
|
+
> **context**: [`FetchContext`](FetchContext.md)
|
|
24
|
+
|
|
25
|
+
Defined in: [packages/web-fetcher/src/core/fetch-return-type.ts:9](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/fetch-return-type.ts#L9)
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### none
|
|
30
|
+
|
|
31
|
+
> **none**: `void`
|
|
32
|
+
|
|
33
|
+
Defined in: [packages/web-fetcher/src/core/fetch-return-type.ts:13](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/fetch-return-type.ts#L13)
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### outputs
|
|
38
|
+
|
|
39
|
+
> **outputs**: `Record`\<`string`, `any`\>
|
|
40
|
+
|
|
41
|
+
Defined in: [packages/web-fetcher/src/core/fetch-return-type.ts:11](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/fetch-return-type.ts#L11)
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### response
|
|
46
|
+
|
|
47
|
+
> **response**: [`FetchResponse`](FetchResponse.md)
|
|
48
|
+
|
|
49
|
+
Defined in: [packages/web-fetcher/src/core/fetch-return-type.ts:8](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/fetch-return-type.ts#L8)
|
|
50
|
+
|
|
51
|
+
***
|
|
52
|
+
|
|
53
|
+
### result
|
|
54
|
+
|
|
55
|
+
> **result**: `undefined` \| [`FetchActionResult`](FetchActionResult.md)\<`any`\>
|
|
56
|
+
|
|
57
|
+
Defined in: [packages/web-fetcher/src/core/fetch-return-type.ts:10](https://github.com/isdk/web-fetcher.js/blob/ef3a4e527bf3ca75213d55b02c017b9a30a036fd/src/core/fetch-return-type.ts#L10)
|