2.23.6
(fix): Refactor HeaderValue to use a single Func<ValueTask<string>> resolver
instead of string-based type discrimination with unchecked casts. The old
static factory methods (FromString, FromFunc, FromValueTaskFunc,
FromTaskFunc) are retained (without deprecation) for backwards compatibility.
2.23.5
(fix): Pass cancellation token to ReadAsStringAsync() calls in generated endpoint methods,
ensuring cancellation is respected during response body reading. A polyfill extension
method is included for target frameworks older than .NET 5 where the overload is not
natively available.
2.23.4
(chore): Remove unused using System.Text.Json.Serialization import from StringEnum.cs.
2.23.3
(fix): Remove duplicate WithRawResponse<T> and WithRawResponseTask<T> structs
from the internal Core namespace. These types were already generated in the
public root namespace (via Core/Public/), making the Core/ copies redundant.
2.23.2
(fix): Fix incorrect XML doc comment on MaxRetries property in ClientOptions,
RequestOptions, and IRequestOptions. The summary previously read
“The http client used to make requests.” (copy-paste from HttpClient)
and now correctly reads “The max number of retries to attempt.”
(fix): Add missing readonly modifier to _client field in generated sub-clients.
The root client already had private readonly RawClient _client but sub-clients
only had private RawClient _client, despite the field being assigned once in
the constructor and never reassigned.