Dangl.RestClient
5.0.1
Prefix Reserved
dotnet add package Dangl.RestClient --version 5.0.1
NuGet\Install-Package Dangl.RestClient -Version 5.0.1
<PackageReference Include="Dangl.RestClient" Version="5.0.1" />
<PackageVersion Include="Dangl.RestClient" Version="5.0.1" />
<PackageReference Include="Dangl.RestClient" />
paket add Dangl.RestClient --version 5.0.1
#r "nuget: Dangl.RestClient, 5.0.1"
#:package Dangl.RestClient@5.0.1
#addin nuget:?package=Dangl.RestClient&version=5.0.1
#tool nuget:?package=Dangl.RestClient&version=5.0.1
Dangl.RestClient www.dangl-it.com
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Dangl.Data.Shared (>= 2.5.2)
- Microsoft.Extensions.Http (>= 7.0.0)
- Newtonsoft.Json (>= 13.0.4)
- System.Net.Http (>= 4.3.4)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Dangl.RestClient:
| Package | Downloads |
|---|---|
|
Dangl.Identity.Client
Dangl.Identity.Client www.dangl-it.com |
|
|
Dangl.RestClient.Identity.Server
Dangl.RestClient www.dangl-it.com |
|
|
Dangl.Identity.Client.App
Dangl.Identity.Client www.dangl-it.com |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.0.1 | 79 | 11/21/2026 |
| 5.0.0 | 54,062 | 6/1/2023 |
| 4.0.0 | 54,210 | 9/18/2021 |
| 3.0.1 | 13,615 | 6/21/2020 |
| 3.0.0 | 2,209 | 6/11/2020 |
| 2.0.0 | 10,712 | 10/2/2019 |
| 1.6.3 | 1,760 | 9/29/2019 |
| 1.6.2 | 1,085 | 9/21/2019 |
| 1.6.1 | 5,718 | 8/15/2019 |
| 1.6.0 | 2,324 | 8/12/2019 |
| 1.5.0 | 6,354 | 6/12/2019 |
| 1.4.0 | 1,143 | 5/11/2019 |
| 1.3.0 | 18,650 | 2/2/2019 |
| 1.2.2 | 17,096 | 8/7/2018 |
| 1.2.1 | 5,849 | 7/18/2018 |
| 1.2.0 | 1,581 | 7/14/2018 |
| 1.1.5 | 1,608 | 7/6/2018 |
| 1.1.4 | 1,784 | 7/4/2018 |
| 1.1.3 | 1,819 | 7/4/2018 |
| 1.1.2 | 1,987 | 5/4/2018 |
## v5.0.1:
- **Dangl.RestClient** now also produces Markdown documentation. This can be easily accessed by AI agents via the MCP server implementation in **Dangl**Docu.
- 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
## v3.0.1:
- Add `sdervices.AddDanglHttpClient<TService, TImplementation>()` overload
## v3.0.0
- 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 `ArgumentNullException`s 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](https://msdn.microsoft.com/en-us/library/wd40t7ad(v=vs.110).aspx)
## 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`
## v1.1.3:
- Dependencies update
- Internal refactoring
## v1.1.2:
- Dependencies update
## v1.1.1:
- `Dangl.RestClient.Identity.Server` is now public
## v1.1.0
- Added **Dangl.RestClient.Identity.TrustedServer** package
- Refactoring to simplify setup of `DanglHttpClient`
## v1.0.2
- Add `ITokenHandler` to allow the `AuthenticationHandler` to be able to obtain and refresh OAuth2 tokens
- Add `Dangl.RestClient.Identity.App` and `Dangl.RestClient.Identity.Server` libraries
## v1.0.1
- Maintenance Release
- Add `netstandard2.0` target
## v1.0.0
- Initial Release