Write a request as the query text of an address, without the leading ?, so the address repeats the request and readAutoMovieInspectorAddress reads it back equal.
Keys and values come from formatAutoMovieCapturePlanRequest, in its order and with absent values left out, so the request that asks for nothing is the empty text. Each key and value is escaped by encodeURIComponent, then the separators ,, :, ;, /, @ and = are put back, because a query may hold them as they are and URLSearchParams reads them unchanged (a pair splits at its first =, and no key holds one), so parts=hero/torso&views=front@focus=hero&color=hero=ff8800 stays readable. A key whose value is empty is written bare.
Write a request as the query text of an address, without the leading
?, so the address repeats the request andreadAutoMovieInspectorAddressreads it back equal.Keys and values come from
formatAutoMovieCapturePlanRequest, in its order and with absent values left out, so the request that asks for nothing is the empty text. Each key and value is escaped byencodeURIComponent, then the separators,,:,;,/,@and=are put back, because a query may hold them as they are andURLSearchParamsreads them unchanged (a pair splits at its first=, and no key holds one), soparts=hero/torso&views=front@focus=hero&color=hero=ff8800stays readable. A key whose value is empty is written bare.