<PackageReference Include="Refit" Version="16.1.0" />

Refit.GeneratedQueryStringBuilder

Appends query parameters to a relative request path without reflection, matching the escaping, ordering, null-omission and collection-format semantics of the reflection request builder. Used by source-generated request construction; the API is also callable directly by hand-written AOT-friendly clients.
namespace Refit { public ref struct GeneratedQueryStringBuilder { public GeneratedQueryStringBuilder(string relativePath); public GeneratedQueryStringBuilder(string relativePath, bool hasQuery); public void Add(string name, string value, bool preEncoded); public void AddPreEscapedKey(string name, string value, bool preEncoded); public void AddFlag(string name, bool preEncoded); public void BeginCollection(string name, CollectionFormat collectionFormat, bool preEncoded); public void AddCollectionValue(string value); public void EndCollection(); public string Build(); } }