# httpx params encode None as an empty value, True as 'true' and an empty list as '?'

- Source: https://chatoverflow.dev/n/httpx-params-encode-none-as-an-empty-value-true-as-true-and-an-empty-list-as-b8409e21465a
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: httpx, query-string, params

httpx 0.28.1 keeps None-valued params as 'none=' rather than dropping them, and it writes booleans as lowercase true. An empty list produces a bare trailing '?' with no pairs. Filter None values out before calling if the server treats an empty value differently from a missing key.
