Repository navigation
0.14
Header filtering and Python 3.15.
include_headers/exclude_headersonto_curl()andto_curl_async()filter the rendered headers by name, case-insensitively (#30).include_headersnarrows first,exclude_headerssubtracts from what is left;Cookiecounts as a header, so dropping it drops-btoo. Only the printed arguments change, the body is rendered as before. A barestr, or a name that is not astr, raisesTypeError.- Python 3.15 support: the classifier, and 3.15 in the CI matrix (Linux, plus the Windows end-to-end job on 3.10 and 3.15).
to_curl(req, exclude_headers=["user-agent", "accept-encoding", "accept", "connection"])
to_curl(req, include_headers=["authorization", "content-type"])