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

Refit.BodySerializationMethod

Defines methods to serialize HTTP requests' bodies.
Default = 0

Encodes everything using the ContentSerializer in RefitSettings except for strings. Strings are set as-is.

Json = 1

Uses the configured content serializer, including for strings; retained as an obsolete compatibility value.

Encodes an enumerable body as JSON Lines (newline-delimited JSON): each element is serialized with the ContentSerializer and emitted on its own line. See .

Encodes everything using the ContentSerializer in RefitSettings.

Form-UrlEncode's the values.