Dangl.RestClient now also produces Markdown documentation. This can be easily accessed by AI agents via the MCP server implementation in DanglDocu.
Build and test infrastructure now uses the .NET 11 SDK, with xUnit v3 tests on .NET 11 and full test parallelization. The library remains compatible with netstandard2.0.
CompressedContent now propagates content-copy failures and cancellation instead of silently reporting success. Compression streams are disposed on success and failure while leaving the destination stream open.
FallbackHandler now retries only HTTP 5xx responses and transport failures, respects cancellation, disposes discarded responses, and buffers request bodies for replay using fresh request instances. Behavior change: only GET and HEAD retry by default; other methods require RetryUnsafeMethods = true or the corresponding AddDanglHttpClient overload, and must be safe to repeat.
Authentication and fallback now share URI-aware matching for scheme, host, effective port and case-sensitive path boundaries, preventing hostname and path-prefix lookalikes from matching. Fallback preserves relative endpoint paths and queries across different base paths and prefers the most specific matching scope. Behavior change: base URLs must use HTTP(S) without credentials, queries or fragments; relative paths without a leading slash resolve beneath the configured base path even without a trailing slash.
Added cancellation-token overloads for GET/POST/PUT JSON helpers and both response wrappers, while retaining all existing signatures and netstandard2.0 compatibility. JSON requests forward cancellation to HttpClient, skip pre-canceled payload serialization, and clean up canceled requests/responses. Behavior change: response wrapping now propagates OperationCanceledException instead of converting cancellation into an unknown API error. Standalone content reading and synchronous JSON processing observe cancellation at operation boundaries.
AuthenticationHandler now coalesces automatic token acquisition and refresh per token-storage instance across concurrent requests and handler instances. Waiters share results or failures, can cancel independently, and later requests can retry failed updates. Storage is rechecked before updating; fresh tokens and separate credential stores are not blocked. Public token-provider/storage interfaces and netstandard2.0 compatibility remain unchanged; the initiating request observes cancellation after the uncancelable provider operation finishes.
Response wrappers now implement IDisposable, own their returned response, and expose ErrorKind plus DeserializationException to distinguish HTTP errors from invalid JSON bodies. JSON helpers dispose generated requests on every exit path and received responses when processing throws; CompressedContent now disposes its owned original content. Behavior change: non-JSON/read failures propagate instead of becoming unknown API errors, and unexpectedly empty successful JSON bodies are invalid unless the response is 204, 205 or HEAD. Valid JSON null, structured API errors, existing overloads and netstandard2.0 compatibility are preserved.
v5.0.0:
Dangl.RestClient.Identity.TrustedServer now requires net7.0 as target framework
The package Dangl.RestClient.Identity.TrustedServer was removed
The package Dangl.RestClient.Identity.Server was removed, it's DanglIdentityServerTokenHandler was moved to Dangl.Identity.Client
The package Dangl.RestClient.Identity.App was removed, it's DanglIdentityAppTokenHandler was moved to Dangl.Identity.Client.App
v4.0.0:
Updated all dependencies to the latest Dangl.Identity versions
Dangl.RestClient.Identity.TrustedServer now requires net5.0 as target framework
The Dangl.Identity dependencies have been updated to v3.0.0
The server side packages have been upgrade to netcoreapp3.1, earlier frameworks are no longer supported
v2.0.0:
Add EventHandler<TokenUpdateEventArgs> TokenUpdate to ITokenHandler interface
v1.6.3:
The GzipHandler no longer tries to compress requests that have no content. This caused ArgumentNullExceptions when the GzipHandler was used when sending empty requests
v1.6.2:
The DanglIdentityAppTokenHandler has a new method that allows setting of user credentials after instantiation: void SetUserCredentials(string userIdentifier, string userPassword)
v1.6.1:
Add NuGet package descriptions
v1.6.0:
The generated assemblies now have a strong name. This is a breaking change of the binary API and will require recompilation on all systems that consume this package. The strong name of the generated assembly allows compatibility with other, signed tools. Please note that this does not increase security or provide tamper-proof binaries, as the key is available in the source code per Microsoft guidelines
v1.5.0:
Update Dangl.Identity dependencies
v1.4.0:
The method ResponseWrapper.GetResponseWrapper was renamed to ResponseWrapper.GetResponseWrapperAsync
v1.3.0:
Dependencies were updated to the latest versions, especially Dangl.Identity
Tests now cover the netcoreapp2.2 framework, tests for netcoreapp2.0 were dropped
v1.2.2:
Add GzipHandler
v1.2.0:
Refactoring to be usable with the HttpClientFactory
The minimum requirement is now netstandard2.0
v1.1.4:
Replace Dangl.Identity.OAuth package with Dangl.Identity.Client.Mvc