Skip to content

Commit f9145b1

Browse files
committed
cherry-pick(#32516): chore: allow query as string in Python/.NET
microsoft/playwright-python#2497
1 parent 2c17b1f commit f9145b1

File tree

2 files changed

+36
-9
lines changed

2 files changed

+36
-9
lines changed

docs/src/api/class-apirequestcontext.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ context cookies from the response. The method will automatically follow redirect
141141
### option: APIRequestContext.delete.params = %%-js-fetch-option-params-%%
142142
* since: v1.16
143143

144-
### param: APIRequestContext.delete.params = %%-java-csharp-fetch-params-%%
144+
### param: APIRequestContext.delete.params = %%-java-fetch-params-%%
145145
* since: v1.18
146146

147147
### option: APIRequestContext.delete.params = %%-python-fetch-option-params-%%
@@ -150,6 +150,9 @@ context cookies from the response. The method will automatically follow redirect
150150
### option: APIRequestContext.delete.params = %%-csharp-fetch-option-params-%%
151151
* since: v1.16
152152

153+
### option: APIRequestContext.delete.paramsString = %%-csharp-fetch-option-paramsString-%%
154+
* since: v1.47
155+
153156
### option: APIRequestContext.delete.headers = %%-js-python-csharp-fetch-option-headers-%%
154157
* since: v1.16
155158

@@ -303,7 +306,7 @@ Target URL or Request to get all parameters from.
303306
### option: APIRequestContext.fetch.params = %%-js-fetch-option-params-%%
304307
* since: v1.16
305308

306-
### param: APIRequestContext.fetch.params = %%-java-csharp-fetch-params-%%
309+
### param: APIRequestContext.fetch.params = %%-java-fetch-params-%%
307310
* since: v1.18
308311

309312
### option: APIRequestContext.fetch.params = %%-python-fetch-option-params-%%
@@ -312,6 +315,9 @@ Target URL or Request to get all parameters from.
312315
### option: APIRequestContext.fetch.params = %%-csharp-fetch-option-params-%%
313316
* since: v1.16
314317

318+
### option: APIRequestContext.fetch.paramsString = %%-csharp-fetch-option-paramsString-%%
319+
* since: v1.47
320+
315321
### option: APIRequestContext.fetch.method
316322
* since: v1.16
317323
* langs: js, python, csharp
@@ -418,7 +424,7 @@ await request.GetAsync("https://example.com/api/getText", new() { Params = query
418424
### option: APIRequestContext.get.params = %%-js-fetch-option-params-%%
419425
* since: v1.16
420426

421-
### param: APIRequestContext.get.params = %%-java-csharp-fetch-params-%%
427+
### param: APIRequestContext.get.params = %%-java-fetch-params-%%
422428
* since: v1.18
423429

424430
### option: APIRequestContext.get.params = %%-python-fetch-option-params-%%
@@ -427,6 +433,9 @@ await request.GetAsync("https://example.com/api/getText", new() { Params = query
427433
### option: APIRequestContext.get.params = %%-csharp-fetch-option-params-%%
428434
* since: v1.16
429435

436+
### option: APIRequestContext.get.paramsString = %%-csharp-fetch-option-paramsString-%%
437+
* since: v1.47
438+
430439
### option: APIRequestContext.get.headers = %%-js-python-csharp-fetch-option-headers-%%
431440
* since: v1.16
432441

@@ -477,7 +486,7 @@ context cookies from the response. The method will automatically follow redirect
477486
### option: APIRequestContext.head.params = %%-js-fetch-option-params-%%
478487
* since: v1.16
479488

480-
### param: APIRequestContext.head.params = %%-java-csharp-fetch-params-%%
489+
### param: APIRequestContext.head.params = %%-java-fetch-params-%%
481490
* since: v1.18
482491

483492
### option: APIRequestContext.head.params = %%-python-fetch-option-params-%%
@@ -486,6 +495,9 @@ context cookies from the response. The method will automatically follow redirect
486495
### option: APIRequestContext.head.params = %%-csharp-fetch-option-params-%%
487496
* since: v1.16
488497

498+
### option: APIRequestContext.head.paramsString = %%-csharp-fetch-option-paramsString-%%
499+
* since: v1.47
500+
489501
### option: APIRequestContext.head.headers = %%-js-python-csharp-fetch-option-headers-%%
490502
* since: v1.16
491503

@@ -536,7 +548,7 @@ context cookies from the response. The method will automatically follow redirect
536548
### option: APIRequestContext.patch.params = %%-js-fetch-option-params-%%
537549
* since: v1.16
538550

539-
### param: APIRequestContext.patch.params = %%-java-csharp-fetch-params-%%
551+
### param: APIRequestContext.patch.params = %%-java-fetch-params-%%
540552
* since: v1.18
541553

542554
### option: APIRequestContext.patch.params = %%-python-fetch-option-params-%%
@@ -545,6 +557,9 @@ context cookies from the response. The method will automatically follow redirect
545557
### option: APIRequestContext.patch.params = %%-csharp-fetch-option-params-%%
546558
* since: v1.16
547559

560+
### option: APIRequestContext.patch.paramsString = %%-csharp-fetch-option-paramsString-%%
561+
* since: v1.47
562+
548563
### option: APIRequestContext.patch.headers = %%-js-python-csharp-fetch-option-headers-%%
549564
* since: v1.16
550565

@@ -716,7 +731,7 @@ await request.PostAsync("https://example.com/api/uploadScript", new() { Multipar
716731
### option: APIRequestContext.post.params = %%-js-fetch-option-params-%%
717732
* since: v1.16
718733

719-
### param: APIRequestContext.post.params = %%-java-csharp-fetch-params-%%
734+
### param: APIRequestContext.post.params = %%-java-fetch-params-%%
720735
* since: v1.18
721736

722737
### option: APIRequestContext.post.params = %%-python-fetch-option-params-%%
@@ -725,6 +740,9 @@ await request.PostAsync("https://example.com/api/uploadScript", new() { Multipar
725740
### option: APIRequestContext.post.params = %%-csharp-fetch-option-params-%%
726741
* since: v1.16
727742

743+
### option: APIRequestContext.post.paramsString = %%-csharp-fetch-option-paramsString-%%
744+
* since: v1.47
745+
728746
### option: APIRequestContext.post.headers = %%-js-python-csharp-fetch-option-headers-%%
729747
* since: v1.16
730748

@@ -775,7 +793,7 @@ context cookies from the response. The method will automatically follow redirect
775793
### option: APIRequestContext.put.params = %%-js-fetch-option-params-%%
776794
* since: v1.16
777795

778-
### param: APIRequestContext.put.params = %%-java-csharp-fetch-params-%%
796+
### param: APIRequestContext.put.params = %%-java-fetch-params-%%
779797
* since: v1.18
780798

781799
### option: APIRequestContext.put.params = %%-python-fetch-option-params-%%
@@ -784,6 +802,9 @@ context cookies from the response. The method will automatically follow redirect
784802
### option: APIRequestContext.put.params = %%-csharp-fetch-option-params-%%
785803
* since: v1.16
786804

805+
### option: APIRequestContext.put.paramsString = %%-csharp-fetch-option-paramsString-%%
806+
* since: v1.47
807+
787808
### option: APIRequestContext.put.headers = %%-js-python-csharp-fetch-option-headers-%%
788809
* since: v1.16
789810

docs/src/api/params.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ Query parameters to be sent with the URL.
364364

365365
## python-fetch-option-params
366366
* langs: python
367-
- `params` <[Object]<[string], [string]|[float]|[boolean]>>
367+
- `params` <[Object]<[string], [string]|[float]|[boolean]>|[string]>
368368

369369
Query parameters to be sent with the URL.
370370

@@ -374,7 +374,13 @@ Query parameters to be sent with the URL.
374374

375375
Query parameters to be sent with the URL.
376376

377-
## java-csharp-fetch-params
377+
## csharp-fetch-option-paramsString
378+
* langs: csharp
379+
- `paramsString` <[string]>
380+
381+
Query parameters to be sent with the URL.
382+
383+
## java-fetch-params
378384
* langs: java
379385
- `options` ?<[RequestOptions]>
380386

0 commit comments

Comments
 (0)