google.internal._gm_encode_query

(internal) A query-string component. There is no percent-encoder in the stdlib, so this covers the characters that would otherwise change the URL's structure plus the ones that are simply illegal in a query. Values that need more than this (raw UTF-8, control characters) should be encoded by the caller.

Reference version

Signature

function google.internal._gm_encode_query(value: string) -> string

(internal) A query-string component. There is no percent-encoder in the stdlib, so this covers the characters that would otherwise change the URL's structure plus the ones that are simply illegal in a query. Values that need more than this (raw UTF-8, control characters) should be encoded by the caller.

Source:<builtin>/google/ns_internal/gemini.bamlbytes 970410123