@gatling.io/http 0.1.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.
@@ -0,0 +1,575 @@
1
+ import { CheckBuilder, Condition, ProtocolBuilder, Session, AllowListFilter, DenyListFilter } from "@gatling.io/core";
2
+ import { Proxy } from "./proxy";
3
+ import JvmHttpProtocolBuilder = io.gatling.javaapi.http.HttpProtocolBuilder;
4
+ /**
5
+ * DSL for building HTTP protocol configurations
6
+ *
7
+ * <p>Immutable, so all methods returns a new occurrence and leave the original unmodified.
8
+ */
9
+ export interface HttpProtocolBuilder extends ProtocolBuilder {
10
+ /**
11
+ * Define the baseUrl that will be used as a prefix for all relative urls
12
+ *
13
+ * @param url - the base url
14
+ * @returns a new HttpProtocolBuilder instance
15
+ */
16
+ baseUrl(url: string): HttpProtocolBuilder;
17
+ /**
18
+ * Define multiple baseUrls that will be used as a prefix for all relative urls. Assigned once per
19
+ * virtual user based on a round-robin strategy.
20
+ *
21
+ * @param urls - the base urls
22
+ * @returns a new HttpProtocolBuilder instance
23
+ */
24
+ baseUrls(...urls: string[]): HttpProtocolBuilder;
25
+ /**
26
+ * Define the warmup url. Used to perform a blank HTTP request to load the classes in the
27
+ * ClassLoader so the first load test request won't have to pay for this penalty. Hit
28
+ * "https://gatling.io" by default.
29
+ *
30
+ * @param url - the warmup url
31
+ * @returns a new HttpProtocolBuilder instance
32
+ */
33
+ warmUp(url: string): HttpProtocolBuilder;
34
+ /**
35
+ * Disable the warmup
36
+ *
37
+ * @returns a new HttpProtocolBuilder instance
38
+ */
39
+ disableWarmUp(): HttpProtocolBuilder;
40
+ /**
41
+ * Share a global connection pool and a global {@link javax.net.ssl.SSLContext} amongst virtual
42
+ * users instead of each having its own. Makes sense if you don't want to generate mob browser
43
+ * traffic but server to server traffic.
44
+ *
45
+ * @returns a new HttpProtocolBuilder instance
46
+ */
47
+ shareConnections(): HttpProtocolBuilder;
48
+ /**
49
+ * Define the local address to bind from
50
+ *
51
+ * @param address - the local address
52
+ * @returns a new HttpProtocolBuilder instance
53
+ */
54
+ localAddress(address: string): HttpProtocolBuilder;
55
+ /**
56
+ * Define multiple local addresses to bind from. Assigned once per virtual user based on a
57
+ * round-robin strategy.
58
+ *
59
+ * @param addresses - the local addresses
60
+ * @returns a new HttpProtocolBuilder instance
61
+ */
62
+ localAddresses(...addresses: string[]): HttpProtocolBuilder;
63
+ /**
64
+ * Bind from all detected local addresses. Assigned once per virtual user based on a round-robin
65
+ * strategy.
66
+ *
67
+ * @returns a new HttpProtocolBuilder instance
68
+ */
69
+ useAllLocalAddresses(): HttpProtocolBuilder;
70
+ /**
71
+ * Bind from all detected local addresses matching at least one of the configured patterns.
72
+ * Assigned once per virtual user based on a round-robin strategy.
73
+ *
74
+ * @param patterns - some <a
75
+ * href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html">Java Regular
76
+ * Expression</a> patterns
77
+ * @returns a new HttpProtocolBuilder instance
78
+ */
79
+ useAllLocalAddressesMatching(...patterns: string[]): HttpProtocolBuilder;
80
+ /**
81
+ * Define an HTTP/1.1 connections per host limit for fetching concurrent resources
82
+ *
83
+ * @param max - the limit
84
+ * @returns a new HttpProtocolBuilder instance
85
+ */
86
+ maxConnectionsPerHost(max: number): HttpProtocolBuilder;
87
+ /**
88
+ * Disable the automatic Referer header generation, based on previous requests.
89
+ *
90
+ * @returns a new HttpProtocolBuilder instance
91
+ */
92
+ disableAutoReferer(): HttpProtocolBuilder;
93
+ /**
94
+ * Disable the automatic Origin header generation, based the request url.
95
+ *
96
+ * @returns a new HttpProtocolBuilder instance
97
+ */
98
+ disableAutoOrigin(): HttpProtocolBuilder;
99
+ /**
100
+ * Disable HTTP caching.
101
+ *
102
+ * @returns a new HttpProtocolBuilder instance
103
+ */
104
+ disableCaching(): HttpProtocolBuilder;
105
+ /**
106
+ * Set a header that's common to all HTTP requests
107
+ *
108
+ * @param name - the static header name
109
+ * @param value - the header value, expressed as a Gatling Expression Language String
110
+ * @returns a new HttpProtocolBuilder instance
111
+ */
112
+ header(name: string, value: string): HttpProtocolBuilder;
113
+ /**
114
+ * Set a header that's common to all HTTP requests
115
+ *
116
+ * @param name - the static header name
117
+ * @param value - the header value, expressed as a function
118
+ * @returns a new HttpProtocolBuilder instance
119
+ */
120
+ header(name: string, value: (session: Session) => string): HttpProtocolBuilder;
121
+ /**
122
+ * Set multiple headers that's common to all HTTP requests
123
+ *
124
+ * @param headers - the headers, names are static but values are expressed as a Gatling Expression
125
+ * Language String
126
+ * @returns a new HttpProtocolBuilder instance
127
+ */
128
+ headers(headers: Record<string, string>): HttpProtocolBuilder;
129
+ /**
130
+ * Set the accept header
131
+ *
132
+ * @param value - the header value, expressed as a Gatling Expression Language String
133
+ * @returns a new HttpProtocolBuilder instance
134
+ */
135
+ acceptHeader(value: string): HttpProtocolBuilder;
136
+ /**
137
+ * Set the accept header
138
+ *
139
+ * @param value - the header value, expressed as a function
140
+ * @returns a new HttpProtocolBuilder instance
141
+ */
142
+ acceptHeader(value: (session: Session) => string): HttpProtocolBuilder;
143
+ /**
144
+ * Set the accept-charset header
145
+ *
146
+ * @param value - the header value, expressed as a Gatling Expression Language String
147
+ * @returns a new HttpProtocolBuilder instance
148
+ */
149
+ acceptCharsetHeader(value: string): HttpProtocolBuilder;
150
+ /**
151
+ * Set the accept-charset header
152
+ *
153
+ * @param value - the header value, expressed as a function
154
+ * @returns a new HttpProtocolBuilder instance
155
+ */
156
+ acceptCharsetHeader(value: (session: Session) => string): HttpProtocolBuilder;
157
+ /**
158
+ * Set the accept-encoding header
159
+ *
160
+ * @param value - the header value, expressed as a Gatling Expression Language String
161
+ * @returns a new HttpProtocolBuilder instance
162
+ */
163
+ acceptEncodingHeader(value: string): HttpProtocolBuilder;
164
+ /**
165
+ * Set the accept-encoding header
166
+ *
167
+ * @param value - the header value, expressed as a Gatling Expression Language String
168
+ * @returns a new HttpProtocolBuilder instance
169
+ */
170
+ acceptEncodingHeader(value: (session: Session) => string): HttpProtocolBuilder;
171
+ /**
172
+ * Set the accept-language header
173
+ *
174
+ * @param value - the header value, expressed as a Gatling Expression Language String
175
+ * @returns a new HttpProtocolBuilder instance
176
+ */
177
+ acceptLanguageHeader(value: string): HttpProtocolBuilder;
178
+ /**
179
+ * Set the accept-language header
180
+ *
181
+ * @param value - the header value, expressed as a function
182
+ * @returns a new HttpProtocolBuilder instance
183
+ */
184
+ acceptLanguageHeader(value: (session: Session) => string): HttpProtocolBuilder;
185
+ /**
186
+ * Set the authorization header
187
+ *
188
+ * @param value - the header value, expressed as a Gatling Expression Language String
189
+ * @returns a new HttpProtocolBuilder instance
190
+ */
191
+ authorizationHeader(value: string): HttpProtocolBuilder;
192
+ /**
193
+ * Set the authorization header
194
+ *
195
+ * @param value - the header value, expressed as a function
196
+ * @returns a new HttpProtocolBuilder instance
197
+ */
198
+ authorizationHeader(value: (session: Session) => string): HttpProtocolBuilder;
199
+ /**
200
+ * Set the connection header
201
+ *
202
+ * @param value - the header value, expressed as a Gatling Expression Language String
203
+ * @returns a new HttpProtocolBuilder instance
204
+ */
205
+ connectionHeader(value: string): HttpProtocolBuilder;
206
+ /**
207
+ * Set the connection header
208
+ *
209
+ * @param value - the header value, expressed as a function
210
+ * @returns a new HttpProtocolBuilder instance
211
+ */
212
+ connectionHeader(value: (session: Session) => string): HttpProtocolBuilder;
213
+ /**
214
+ * Set the content-type header
215
+ *
216
+ * @param value - the header value, expressed as a Gatling Expression Language String
217
+ * @returns a new HttpProtocolBuilder instance
218
+ */
219
+ contentTypeHeader(value: string): HttpProtocolBuilder;
220
+ /**
221
+ * Set the content-type header
222
+ *
223
+ * @param value - the header value, expressed as a function
224
+ * @returns a new HttpProtocolBuilder instance
225
+ */
226
+ contentTypeHeader(value: (session: Session) => string): HttpProtocolBuilder;
227
+ /**
228
+ * Set the do-not-track header
229
+ *
230
+ * @param value - the header value, expressed as a Gatling Expression Language String
231
+ * @returns a new HttpProtocolBuilder instance
232
+ */
233
+ doNotTrackHeader(value: string): HttpProtocolBuilder;
234
+ /**
235
+ * Set the do-not-track header
236
+ *
237
+ * @param value - the header value, expressed as a function
238
+ * @returns a new HttpProtocolBuilder instance
239
+ */
240
+ doNotTrackHeader(value: (session: Session) => string): HttpProtocolBuilder;
241
+ /**
242
+ * Set the origin header
243
+ *
244
+ * @param value - the header value, expressed as a Gatling Expression Language String
245
+ * @returns a new HttpProtocolBuilder instance
246
+ */
247
+ originHeader(value: string): HttpProtocolBuilder;
248
+ /**
249
+ * Set the origin header
250
+ *
251
+ * @param value - the header value, expressed as a function
252
+ * @returns a new HttpProtocolBuilder instance
253
+ */
254
+ originHeader(value: (session: Session) => string): HttpProtocolBuilder;
255
+ /**
256
+ * Set the user-agent header
257
+ *
258
+ * @param value - the header value, expressed as a Gatling Expression Language String
259
+ * @returns a new HttpProtocolBuilder instance
260
+ */
261
+ userAgentHeader(value: string): HttpProtocolBuilder;
262
+ /**
263
+ * Set the user-agent header
264
+ *
265
+ * @param value - the header value, expressed as a function
266
+ * @returns a new HttpProtocolBuilder instance
267
+ */
268
+ userAgentHeader(value: (session: Session) => string): HttpProtocolBuilder;
269
+ /**
270
+ * Set the upgrade-insecure-requests header
271
+ *
272
+ * @param value - the header value, expressed as a Gatling Expression Language String
273
+ * @returns a new HttpProtocolBuilder instance
274
+ */
275
+ upgradeInsecureRequestsHeader(value: string): HttpProtocolBuilder;
276
+ /**
277
+ * Set the upgrade-insecure-requests header
278
+ *
279
+ * @param value - the header value, expressed as a function
280
+ * @returns a new HttpProtocolBuilder instance
281
+ */
282
+ upgradeInsecureRequestsHeader(value: (session: Session) => string): HttpProtocolBuilder;
283
+ /**
284
+ * Set the authorization header for Basic Auth
285
+ *
286
+ * @param username - the username, expressed as a Gatling Expression Language String
287
+ * @param password - the password, expressed as a Gatling Expression Language String
288
+ * @returns a new HttpProtocolBuilder instance
289
+ */
290
+ basicAuth(username: string, password: string): HttpProtocolBuilder;
291
+ /**
292
+ * Set the authorization header for Basic Auth
293
+ *
294
+ * @param username - the username, expressed as a Gatling Expression Language String
295
+ * @param password - the password, expressed as a function
296
+ * @returns a new HttpProtocolBuilder instance
297
+ */
298
+ basicAuth(username: string, password: (session: Session) => string): HttpProtocolBuilder;
299
+ /**
300
+ * Set the authorization header for Basic Auth
301
+ *
302
+ * @param username - the username, expressed as a function
303
+ * @param password - the password, expressed as a Gatling Expression Language String
304
+ * @returns a new HttpProtocolBuilder instance
305
+ */
306
+ basicAuth(username: (session: Session) => string, password: string): HttpProtocolBuilder;
307
+ /**
308
+ * Set the authorization header for Basic Auth
309
+ *
310
+ * @param username - the username, expressed as a function
311
+ * @param password - the password, expressed as a function
312
+ * @returns a new HttpProtocolBuilder instance
313
+ */
314
+ basicAuth(username: (session: Session) => string, password: (session: Session) => string): HttpProtocolBuilder;
315
+ /**
316
+ * Set the authorization header for Digest Auth
317
+ *
318
+ * @param username - the username, expressed as a Gatling Expression Language String
319
+ * @param password - the password, expressed as a Gatling Expression Language String
320
+ * @returns a new HttpProtocolBuilder instance
321
+ */
322
+ digestAuth(username: string, password: string): HttpProtocolBuilder;
323
+ /**
324
+ * Set the authorization header for Digest Auth
325
+ *
326
+ * @param username - the username, expressed as a Gatling Expression Language String
327
+ * @param password - the password, expressed as a function
328
+ * @returns a new HttpProtocolBuilder instance
329
+ */
330
+ digestAuth(username: string, password: (session: Session) => string): HttpProtocolBuilder;
331
+ /**
332
+ * Set the authorization header for Digest Auth
333
+ *
334
+ * @param username - the username, expressed as a function
335
+ * @param password - the password, expressed as a Gatling Expression Language String
336
+ * @returns a new HttpProtocolBuilder instance
337
+ */
338
+ digestAuth(username: (session: Session) => string, password: string): HttpProtocolBuilder;
339
+ /**
340
+ * Set the authorization header for Digest Auth
341
+ *
342
+ * @param username - the username, expressed as a function
343
+ * @param password - the password, expressed as a function
344
+ * @returns a new HttpProtocolBuilder instance
345
+ */
346
+ digestAuth(username: (session: Session) => string, password: (session: Session) => string): HttpProtocolBuilder;
347
+ /**
348
+ * Instruct the reporting engine to not report resources
349
+ *
350
+ * @returns a new HttpProtocolBuilder instance
351
+ */
352
+ silentResources(): HttpProtocolBuilder;
353
+ /**
354
+ * Instruct the reporting engine to not report requests whose uri matches the configured <a
355
+ * href="https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html">Java Regular
356
+ * Expression</a> pattern
357
+ *
358
+ * @param pattern - the regex pattern
359
+ * @returns a new HttpProtocolBuilder instance
360
+ */
361
+ silentUri(pattern: string): HttpProtocolBuilder;
362
+ /**
363
+ * Disable the automatic url encoding that tries to detect unescaped reserved chars
364
+ *
365
+ * @returns a new HttpProtocolBuilder instance
366
+ */
367
+ disableUrlEncoding(): HttpProtocolBuilder;
368
+ /**
369
+ * Provide a function to sign the requests before writing them on the wire
370
+ *
371
+ * @param calculator - the signing function
372
+ * @returns a new HttpProtocolBuilder instance
373
+ */
374
+ /**
375
+ * Instruct sign the requests with an OAuth1 Authorization header before writing them on the wire
376
+ *
377
+ * @param consumerKey - the consumerKey, expressed as a Gatling Expression Language String
378
+ * @param clientSharedSecret - the clientSharedSecret, expressed as a Gatling Expression Language
379
+ * String
380
+ * @param token - the token, expressed as a Gatling Expression Language String
381
+ * @param tokenSecret - the tokenSecret, expressed as a Gatling Expression Language String
382
+ * @returns a new HttpProtocolBuilder instance
383
+ */
384
+ signWithOAuth1(consumerKey: string, clientSharedSecret: string, token: string, tokenSecret: string): HttpProtocolBuilder;
385
+ /**
386
+ * Instruct sign the requests with OAuth1 before writing them on the wire
387
+ *
388
+ * @param consumerKey - the consumerKey, expressed as a Gatling Expression Language String
389
+ * @param clientSharedSecret - the clientSharedSecret, expressed as a Gatling Expression Language
390
+ * String
391
+ * @param token - the token, expressed as a Gatling Expression Language String
392
+ * @param tokenSecret - the tokenSecret, expressed as a Gatling Expression Language String
393
+ * @param useAuthorizationHeader - if true, sign with an Authorization header, otherwise sign forms
394
+ * with extra parameters and other requests with extra query params
395
+ * @returns a new HttpProtocolBuilder instance
396
+ */
397
+ signWithOAuth1(consumerKey: string, clientSharedSecret: string, token: string, tokenSecret: string, useAuthorizationHeader: boolean): HttpProtocolBuilder;
398
+ /**
399
+ * Instruct sign the requests with an OAuth1 Authorization before writing them on the wire
400
+ *
401
+ * @param consumerKey - the consumerKey, expressed as a function
402
+ * @param clientSharedSecret - the clientSharedSecret, expressed as a function
403
+ * @param token - the token, expressed as a function
404
+ * @param tokenSecret - the tokenSecret, expressed as a function
405
+ * @returns a new HttpProtocolBuilder instance
406
+ */
407
+ signWithOAuth1(consumerKey: (session: Session) => string, clientSharedSecret: (session: Session) => string, token: (session: Session) => string, tokenSecret: (session: Session) => string): HttpProtocolBuilder;
408
+ /**
409
+ * Instruct sign the requests with OAuth1 before writing them on the wire
410
+ *
411
+ * @param consumerKey - the consumerKey, expressed as a function
412
+ * @param clientSharedSecret - the clientSharedSecret, expressed as a function
413
+ * @param token - the token, expressed as a function
414
+ * @param tokenSecret - the tokenSecret, expressed as a function
415
+ * @param useAuthorizationHeader - if true, sign with an Authorization header, otherwise sign forms
416
+ * with extra parameters and other requests with extra query params
417
+ * @returns a new HttpProtocolBuilder instance
418
+ */
419
+ signWithOAuth1(consumerKey: (session: Session) => string, clientSharedSecret: (session: Session) => string, token: (session: Session) => string, tokenSecret: (session: Session) => string, useAuthorizationHeader: boolean): HttpProtocolBuilder;
420
+ /**
421
+ * Enable HTTP/2
422
+ *
423
+ * @returns a new HttpProtocolBuilder instance
424
+ */
425
+ enableHttp2(): HttpProtocolBuilder;
426
+ /**
427
+ * Define the remote hosts that are known to support or not support HTTP/2
428
+ *
429
+ * @param remotes - the known remote hosts
430
+ * @returns a new HttpProtocolBuilder instance
431
+ */
432
+ http2PriorKnowledge(remotes: Record<string, boolean>): HttpProtocolBuilder;
433
+ /**
434
+ * Disable automatically following redirects
435
+ *
436
+ * @returns a new HttpProtocolBuilder instance
437
+ */
438
+ disableFollowRedirect(): HttpProtocolBuilder;
439
+ /**
440
+ * Define the maximum number of redirects in a redirect chain
441
+ *
442
+ * @param max - the limit
443
+ * @returns a new HttpProtocolBuilder instance
444
+ */
445
+ maxRedirects(max: number): HttpProtocolBuilder;
446
+ /**
447
+ * Apply 302 strictly and not switch to GET and re-send the request body
448
+ *
449
+ * @returns a new HttpProtocolBuilder instance
450
+ */
451
+ strict302Handling(): HttpProtocolBuilder;
452
+ /**
453
+ * Define a transformation function to be applied on the {@link Response}s before checks are
454
+ * applied. Typically used for decoding responses, eg with <a
455
+ * href="https://developers.google.com/protocol-buffers">Protobuf</a>.
456
+ *
457
+ * @param f - the strategy
458
+ * @returns a new HttpProtocolBuilder instance
459
+ */
460
+ /**
461
+ * Apply some checks
462
+ *
463
+ * @param checks - the checks
464
+ * @returns a new HttpRequestActionBuilder instance
465
+ */
466
+ check(...checks: CheckBuilder[]): HttpProtocolBuilder;
467
+ /**
468
+ * Define some common checks to be applied on all the requests when a condition holds true.
469
+ *
470
+ * @param condition - a condition, expressed as a Gatling Expression Language String
471
+ * @returns the next DSL step
472
+ */
473
+ checkIf(condition: string): Condition<HttpProtocolBuilder>;
474
+ /**
475
+ * Define some common checks to be applied on all the requests when a condition holds true.
476
+ *
477
+ * @param condition - a condition, expressed as a function
478
+ * @returns the next DSL step
479
+ */
480
+ checkIf(condition: (session: Session) => boolean): Condition<HttpProtocolBuilder>;
481
+ /**
482
+ * Automatically infer resources from HTML payloads
483
+ *
484
+ * @returns a new HttpProtocolBuilder instance
485
+ */
486
+ inferHtmlResources(): HttpProtocolBuilder;
487
+ /**
488
+ * Automatically infer resources from HTML payloads
489
+ *
490
+ * @param allow - the allow list to filter the resources
491
+ * @returns a new HttpProtocolBuilder instance
492
+ */
493
+ inferHtmlResources(allow: AllowListFilter): HttpProtocolBuilder;
494
+ /**
495
+ * Automatically infer resources from HTML payloads
496
+ *
497
+ * @param allow - the allow list to filter the resources
498
+ * @param deny - the deny list to filter out the resources
499
+ * @returns a new HttpProtocolBuilder instance
500
+ */
501
+ inferHtmlResources(allow: AllowListFilter, deny: DenyListFilter): HttpProtocolBuilder;
502
+ /**
503
+ * Automatically infer resources from HTML payloads
504
+ *
505
+ * @param deny - the deny list to filter out the resources
506
+ * @returns a new HttpProtocolBuilder instance
507
+ */
508
+ inferHtmlResources(deny: DenyListFilter): HttpProtocolBuilder;
509
+ /**
510
+ * Name the inferred resources' requests based on the tail of the url
511
+ *
512
+ * @returns a new HttpProtocolBuilder instance
513
+ */
514
+ nameInferredHtmlResourcesAfterUrlTail(): HttpProtocolBuilder;
515
+ /**
516
+ * Name the inferred resources' requests based on the absolute url
517
+ *
518
+ * @returns a new HttpProtocolBuilder instance
519
+ */
520
+ nameInferredHtmlResourcesAfterAbsoluteUrl(): HttpProtocolBuilder;
521
+ /**
522
+ * Name the inferred resources' requests based on the relative url
523
+ *
524
+ * @returns a new HttpProtocolBuilder instance
525
+ */
526
+ nameInferredHtmlResourcesAfterRelativeUrl(): HttpProtocolBuilder;
527
+ /**
528
+ * Name the inferred resources' requests based on the path
529
+ *
530
+ * @returns a new HttpProtocolBuilder instance
531
+ */
532
+ nameInferredHtmlResourcesAfterPath(): HttpProtocolBuilder;
533
+ /**
534
+ * Name the inferred resources' requests based on the last element of the path
535
+ *
536
+ * @returns a new HttpProtocolBuilder instance
537
+ */
538
+ nameInferredHtmlResourcesAfterLastPathElement(): HttpProtocolBuilder;
539
+ /**
540
+ * Ignore any configured proxy for some hosts
541
+ *
542
+ * @param hosts - the hosts that must be connected directly without the proxy
543
+ * @returns a new HttpProtocolBuilder instance
544
+ */
545
+ noProxyFor(...hosts: string[]): HttpProtocolBuilder;
546
+ /**
547
+ * Define a Proxy to be used for all requests
548
+ *
549
+ * @param proxy - the proxy
550
+ * @returns a new HttpProtocolBuilder instance
551
+ */
552
+ proxy(proxy: Proxy): HttpProtocolBuilder;
553
+ /**
554
+ * Enable Gatling non-blocking DNS resolution instead of using Java's blocking implementation
555
+ *
556
+ * @param dnsServers - the DNS servers
557
+ * @returns a new HttpProtocolBuilder instance
558
+ */
559
+ asyncNameResolution(...dnsServers: string[]): HttpProtocolBuilder;
560
+ /**
561
+ * Define some aliases to bypass DNS name resolution
562
+ *
563
+ * @param aliases the aliases
564
+ * @return a new HttpProtocolBuilder instance
565
+ */
566
+ hostNameAliases(aliases: Record<string, string[]>): HttpProtocolBuilder;
567
+ /**
568
+ * Force each virtual user to have its own DNS cache and perform its own DNS resolutions instead
569
+ * of using a global shared resolver
570
+ *
571
+ * @returns a new HttpProtocolBuilder instance
572
+ */
573
+ perUserNameResolution(): HttpProtocolBuilder;
574
+ }
575
+ export declare const wrapHttpProtocolBuilder: (_underlying: JvmHttpProtocolBuilder) => HttpProtocolBuilder;