Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想发送一个带大括号的未编码查询字符串。
在内部,httpx将传递的 url 包装在httpx.URL对象中,并且百分比对花括号进行编码,我需要将它们发送未编码。我尝试将查询字符串作为 params 字段传递,但最终仍被编码。我还尝试设置 URL 的查询属性(url._uri_reference.query),但这会导致错误,因为该属性不可访问。有没有办法让 httpx 库不编码 URL 或使用自定义编码?