Trace
Requirement → acceptance criteria → tasks → commits → pull requests → reviews, with each criterion's AI verdict and its verification on the latest build.
REQ-HTTPX-01 · v2 changed 2025-01-10
TLS is configured through verify (bool or ssl.SSLContext) only. Old string forms raise TypeError with a message that shows the replacement.
2 versions
| v | Changed | Text | Why |
|---|---|---|---|
| 1 | 2024-10-20 | TLS is configured through verify (bool or ssl.SSLContext) only. Old string forms fail with a message that shows the replacement. | initial |
| 2 | 2025-01-10 | TLS is configured through verify (bool or ssl.SSLContext) only. Old string forms raise TypeError with a message that shows the replacement. | Error type tightened to TypeError to match Python conventions for a wrong argument type. |
6 acceptance criteria
`verify` accepts `True`, `False` or an `ssl.SSLContext`, and the separate `ssl_context` parameter is removed.
Passing a string to `verify` raises an error that tells the user to use `ssl.create_default_context(cafile=...)` instead.
Passing a string to `verify` raises `TypeError`.
Importing httpx does not import the `ssl` module until a client actually needs it.
Using `verify=False` together with a client certificate (`cert=...`) still loads the certificate instead of ignoring it.