> This page is for SDKs, version Legacy.
> For other versions, use one of these documentation indexes:
> - Current (default): https://buildwithfern.com/learn/sdks/current/llms.txt
> - Legacy: https://buildwithfern.com/learn/sdks/legacy/llms.txt

> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://buildwithfern.com/learn/llms.txt. For task-scoped instructions for coding agents working in a Fern project, run `fern instructions` (or `npx fern-api@latest instructions` if the Fern CLI isn't installed or doesn't recognize `instructions`), or see https://buildwithfern.com/learn/home/fern-instructions.md.

## 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.