You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: build search params through the URLSearchParams layer
The serialization defines the name and value of each search param, where
every value is a string, and leaves rendering the query string to
URLSearchParams. UrlSearchParams is that layer here, so hand the query it
renders to httpx as params, the way the reference implementation hands it to
axios as a paramsSerializer.
httpx re-encodes the query it is given, escaping "*" and unescaping "~", so
the earlier commit set the query on the URL to keep those bytes. That was
unnecessary: re-encoding changes no param. Across the 3141 query strings of
the randomized corpus, 1714 differ from ours in bytes and none differ in
decoded name-value pairs.
The README said to avoid a client's params for that reason, which was wrong.
Describe the pairs and the layer that renders them instead.
Narrow the null module to NULL and the Null type it instantiates. Whether a
value is the sentinel, and replacing it for JSON serialization, are internal
concerns of this SDK: a caller building their own request body writes None,
which already serializes to null.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PpqwDhZmyikGbjmCPqFW2A
0 commit comments