Skip to content

Commit 8f7ce9a

Browse files
committed
change to httpx.request
1 parent c608cbe commit 8f7ce9a

23 files changed

+46
-46
lines changed

end_to_end_tests/golden-record/my_test_api_client/api/location/get_location_query_optionality.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def sync_detailed(
7777
not_null_not_required=not_null_not_required,
7878
)
7979

80-
response = httpx.get(
80+
response = httpx.request(
8181
verify=client.verify_ssl,
8282
**kwargs,
8383
)
@@ -102,6 +102,6 @@ async def asyncio_detailed(
102102
)
103103

104104
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
105-
response = await _client.get(**kwargs)
105+
response = await _client.request(**kwargs)
106106

107107
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/parameters/delete_common_parameters_overriding_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def sync_detailed(
5353
param_query=param_query,
5454
)
5555

56-
response = httpx.delete(
56+
response = httpx.request(
5757
verify=client.verify_ssl,
5858
**kwargs,
5959
)
@@ -74,6 +74,6 @@ async def asyncio_detailed(
7474
)
7575

7676
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
77-
response = await _client.delete(**kwargs)
77+
response = await _client.request(**kwargs)
7878

7979
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_common_parameters_overriding_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def sync_detailed(
5353
param_query=param_query,
5454
)
5555

56-
response = httpx.get(
56+
response = httpx.request(
5757
verify=client.verify_ssl,
5858
**kwargs,
5959
)
@@ -74,6 +74,6 @@ async def asyncio_detailed(
7474
)
7575

7676
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
77-
response = await _client.get(**kwargs)
77+
response = await _client.request(**kwargs)
7878

7979
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/parameters/get_same_name_multiple_locations_param.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def sync_detailed(
6565
param_cookie=param_cookie,
6666
)
6767

68-
response = httpx.get(
68+
response = httpx.request(
6969
verify=client.verify_ssl,
7070
**kwargs,
7171
)
@@ -90,6 +90,6 @@ async def asyncio_detailed(
9090
)
9191

9292
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
93-
response = await _client.get(**kwargs)
93+
response = await _client.request(**kwargs)
9494

9595
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/parameters/multiple_path_parameters.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def sync_detailed(
5555
client=client,
5656
)
5757

58-
response = httpx.get(
58+
response = httpx.request(
5959
verify=client.verify_ssl,
6060
**kwargs,
6161
)
@@ -80,6 +80,6 @@ async def asyncio_detailed(
8080
)
8181

8282
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
83-
response = await _client.get(**kwargs)
83+
response = await _client.request(**kwargs)
8484

8585
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/tag1/get_tag_with_number.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def sync_detailed(
4141
client=client,
4242
)
4343

44-
response = httpx.get(
44+
response = httpx.request(
4545
verify=client.verify_ssl,
4646
**kwargs,
4747
)
@@ -58,6 +58,6 @@ async def asyncio_detailed(
5858
)
5959

6060
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
61-
response = await _client.get(**kwargs)
61+
response = await _client.request(**kwargs)
6262

6363
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/tests/defaults_tests_defaults_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def sync_detailed(
135135
required_model_prop=required_model_prop,
136136
)
137137

138-
response = httpx.post(
138+
response = httpx.request(
139139
verify=client.verify_ssl,
140140
**kwargs,
141141
)
@@ -207,7 +207,7 @@ async def asyncio_detailed(
207207
)
208208

209209
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
210-
response = await _client.post(**kwargs)
210+
response = await _client.request(**kwargs)
211211

212212
return _build_response(response=response)
213213

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_booleans.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def sync_detailed(
4949
client=client,
5050
)
5151

52-
response = httpx.get(
52+
response = httpx.request(
5353
verify=client.verify_ssl,
5454
**kwargs,
5555
)
@@ -77,7 +77,7 @@ async def asyncio_detailed(
7777
)
7878

7979
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
80-
response = await _client.get(**kwargs)
80+
response = await _client.request(**kwargs)
8181

8282
return _build_response(response=response)
8383

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_floats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def sync_detailed(
4949
client=client,
5050
)
5151

52-
response = httpx.get(
52+
response = httpx.request(
5353
verify=client.verify_ssl,
5454
**kwargs,
5555
)
@@ -77,7 +77,7 @@ async def asyncio_detailed(
7777
)
7878

7979
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
80-
response = await _client.get(**kwargs)
80+
response = await _client.request(**kwargs)
8181

8282
return _build_response(response=response)
8383

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_integers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def sync_detailed(
4949
client=client,
5050
)
5151

52-
response = httpx.get(
52+
response = httpx.request(
5353
verify=client.verify_ssl,
5454
**kwargs,
5555
)
@@ -77,7 +77,7 @@ async def asyncio_detailed(
7777
)
7878

7979
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
80-
response = await _client.get(**kwargs)
80+
response = await _client.request(**kwargs)
8181

8282
return _build_response(response=response)
8383

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_basic_list_of_strings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def sync_detailed(
4949
client=client,
5050
)
5151

52-
response = httpx.get(
52+
response = httpx.request(
5353
verify=client.verify_ssl,
5454
**kwargs,
5555
)
@@ -77,7 +77,7 @@ async def asyncio_detailed(
7777
)
7878

7979
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
80-
response = await _client.get(**kwargs)
80+
response = await _client.request(**kwargs)
8181

8282
return _build_response(response=response)
8383

end_to_end_tests/golden-record/my_test_api_client/api/tests/get_user_list.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def sync_detailed(
109109
some_date=some_date,
110110
)
111111

112-
response = httpx.get(
112+
response = httpx.request(
113113
verify=client.verify_ssl,
114114
**kwargs,
115115
)
@@ -153,7 +153,7 @@ async def asyncio_detailed(
153153
)
154154

155155
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
156-
response = await _client.get(**kwargs)
156+
response = await _client.request(**kwargs)
157157

158158
return _build_response(response=response)
159159

end_to_end_tests/golden-record/my_test_api_client/api/tests/int_enum_tests_int_enum_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def sync_detailed(
6666
int_enum=int_enum,
6767
)
6868

69-
response = httpx.post(
69+
response = httpx.request(
7070
verify=client.verify_ssl,
7171
**kwargs,
7272
)
@@ -98,7 +98,7 @@ async def asyncio_detailed(
9898
)
9999

100100
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
101-
response = await _client.post(**kwargs)
101+
response = await _client.request(**kwargs)
102102

103103
return _build_response(response=response)
104104

end_to_end_tests/golden-record/my_test_api_client/api/tests/json_body_tests_json_body_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def sync_detailed(
6161
json_body=json_body,
6262
)
6363

64-
response = httpx.post(
64+
response = httpx.request(
6565
verify=client.verify_ssl,
6666
**kwargs,
6767
)
@@ -93,7 +93,7 @@ async def asyncio_detailed(
9393
)
9494

9595
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
96-
response = await _client.post(**kwargs)
96+
response = await _client.request(**kwargs)
9797

9898
return _build_response(response=response)
9999

end_to_end_tests/golden-record/my_test_api_client/api/tests/no_response_tests_no_response_get.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def sync_detailed(
4141
client=client,
4242
)
4343

44-
response = httpx.get(
44+
response = httpx.request(
4545
verify=client.verify_ssl,
4646
**kwargs,
4747
)
@@ -58,6 +58,6 @@ async def asyncio_detailed(
5858
)
5959

6060
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
61-
response = await _client.get(**kwargs)
61+
response = await _client.request(**kwargs)
6262

6363
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/tests/octet_stream_tests_octet_stream_get.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def sync_detailed(
5050
client=client,
5151
)
5252

53-
response = httpx.get(
53+
response = httpx.request(
5454
verify=client.verify_ssl,
5555
**kwargs,
5656
)
@@ -78,7 +78,7 @@ async def asyncio_detailed(
7878
)
7979

8080
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
81-
response = await _client.get(**kwargs)
81+
response = await _client.request(**kwargs)
8282

8383
return _build_response(response=response)
8484

end_to_end_tests/golden-record/my_test_api_client/api/tests/post_form_data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def sync_detailed(
4646
form_data=form_data,
4747
)
4848

49-
response = httpx.post(
49+
response = httpx.request(
5050
verify=client.verify_ssl,
5151
**kwargs,
5252
)
@@ -65,6 +65,6 @@ async def asyncio_detailed(
6565
)
6666

6767
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
68-
response = await _client.post(**kwargs)
68+
response = await _client.request(**kwargs)
6969

7070
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/tests/test_inline_objects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def sync_detailed(
5757
json_body=json_body,
5858
)
5959

60-
response = httpx.post(
60+
response = httpx.request(
6161
verify=client.verify_ssl,
6262
**kwargs,
6363
)
@@ -89,7 +89,7 @@ async def asyncio_detailed(
8989
)
9090

9191
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
92-
response = await _client.post(**kwargs)
92+
response = await _client.request(**kwargs)
9393

9494
return _build_response(response=response)
9595

end_to_end_tests/golden-record/my_test_api_client/api/tests/token_with_cookie_auth_token_with_cookie_get.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def sync_detailed(
4646
my_token=my_token,
4747
)
4848

49-
response = httpx.get(
49+
response = httpx.request(
5050
verify=client.verify_ssl,
5151
**kwargs,
5252
)
@@ -65,6 +65,6 @@ async def asyncio_detailed(
6565
)
6666

6767
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
68-
response = await _client.get(**kwargs)
68+
response = await _client.request(**kwargs)
6969

7070
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/tests/unsupported_content_tests_unsupported_content_get.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def sync_detailed(
4141
client=client,
4242
)
4343

44-
response = httpx.get(
44+
response = httpx.request(
4545
verify=client.verify_ssl,
4646
**kwargs,
4747
)
@@ -58,6 +58,6 @@ async def asyncio_detailed(
5858
)
5959

6060
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
61-
response = await _client.get(**kwargs)
61+
response = await _client.request(**kwargs)
6262

6363
return _build_response(response=response)

end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_file_tests_upload_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def sync_detailed(
6767
keep_alive=keep_alive,
6868
)
6969

70-
response = httpx.post(
70+
response = httpx.request(
7171
verify=client.verify_ssl,
7272
**kwargs,
7373
)
@@ -103,7 +103,7 @@ async def asyncio_detailed(
103103
)
104104

105105
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
106-
response = await _client.post(**kwargs)
106+
response = await _client.request(**kwargs)
107107

108108
return _build_response(response=response)
109109

end_to_end_tests/golden-record/my_test_api_client/api/tests/upload_multiple_files_tests_upload_post.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def sync_detailed(
7070
keep_alive=keep_alive,
7171
)
7272

73-
response = httpx.post(
73+
response = httpx.request(
7474
verify=client.verify_ssl,
7575
**kwargs,
7676
)
@@ -106,7 +106,7 @@ async def asyncio_detailed(
106106
)
107107

108108
async with httpx.AsyncClient(verify=client.verify_ssl) as _client:
109-
response = await _client.post(**kwargs)
109+
response = await _client.request(**kwargs)
110110

111111
return _build_response(response=response)
112112

0 commit comments

Comments
 (0)