Skip to content

Commit 917db7d

Browse files
committed
httpx2.Client uses proxy and httpx itself deprecated proxies in 0.28.0, h/t to codex for finding this issue
1 parent 182ab12 commit 917db7d

7 files changed

Lines changed: 8 additions & 8 deletions

File tree

end_to_end_tests/golden-records/docstrings-on-attributes-golden-record/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ client = Client(
106106
base_url="https://api.example.com",
107107
)
108108
# Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
109-
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxies="http://localhost:8030"))
109+
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxy="http://localhost:8030"))
110110
```
111111

112112
## Building / publishing this package

end_to_end_tests/golden-records/escapes-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ client = Client(
106106
base_url="https://api.example.com",
107107
)
108108
# Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
109-
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxies="http://localhost:8030"))
109+
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxy="http://localhost:8030"))
110110
```
111111

112112
## Building / publishing this package

end_to_end_tests/golden-records/my-enum-api-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ client = Client(
106106
base_url="https://api.example.com",
107107
)
108108
# Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
109-
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxies="http://localhost:8030"))
109+
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxy="http://localhost:8030"))
110110
```
111111

112112
## Building / publishing this package

end_to_end_tests/golden-records/my-test-api-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ client = Client(
106106
base_url="https://api.example.com",
107107
)
108108
# Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
109-
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxies="http://localhost:8030"))
109+
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxy="http://localhost:8030"))
110110
```
111111

112112
## Building / publishing this package

end_to_end_tests/golden-records/test-3-1-features-client/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ client = Client(
106106
base_url="https://api.example.com",
107107
)
108108
# Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
109-
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxies="http://localhost:8030"))
109+
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxy="http://localhost:8030"))
110110
```
111111

112112
## Building / publishing this package

integration-tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,6 @@ client = Client(
106106
base_url="https://api.example.com",
107107
)
108108
# Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
109-
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxies="http://localhost:8030"))
109+
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxy="http://localhost:8030"))
110110
```
111111

openapi_python_client/templates/README.md.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ client = Client(
106106
base_url="https://api.example.com",
107107
)
108108
# Note that base_url needs to be re-set, as would any shared cookies, headers, etc.
109-
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxies="http://localhost:8030"))
109+
client.set_httpx2_client(httpx2.Client(base_url="https://api.example.com", proxy="http://localhost:8030"))
110110
```
111111

112112
{% if meta == "poetry" %}
@@ -136,4 +136,4 @@ If you want to install this client into another project without publishing it (e
136136
1. If that project is not using uv:
137137
1. Build a wheel with `uv build --wheel`.
138138
1. Install that wheel from the other project `pip install <path-to-wheel>`.
139-
{% endif %}
139+
{% endif %}

0 commit comments

Comments
 (0)