KamiSama.Extensions.RestSharp
10.0.11.6
See the version list below for details.
dotnet add package KamiSama.Extensions.RestSharp --version 10.0.11.6
NuGet\Install-Package KamiSama.Extensions.RestSharp -Version 10.0.11.6
<PackageReference Include="KamiSama.Extensions.RestSharp" Version="10.0.11.6" />
<PackageVersion Include="KamiSama.Extensions.RestSharp" Version="10.0.11.6" />
<PackageReference Include="KamiSama.Extensions.RestSharp" />
paket add KamiSama.Extensions.RestSharp --version 10.0.11.6
#r "nuget: KamiSama.Extensions.RestSharp, 10.0.11.6"
#:package KamiSama.Extensions.RestSharp@10.0.11.6
#addin nuget:?package=KamiSama.Extensions.RestSharp&version=10.0.11.6
#tool nuget:?package=KamiSama.Extensions.RestSharp&version=10.0.11.6
KamiSama.Extensions.RestSharp
Version: 10.0.0
Description
Fluent RestSharp request construction and dependency injection registration for HTTP integrations. Build GET, POST, PUT, and DELETE requests with parameters, headers, URL segments, files, or JSON bodies, then deserialize successful responses.
How to use
dotnet add package KamiSama.Extensions.RestSharp --version 10.0.0
Register an HttpClient before adding the RestSharp services. Inject IRestBuilder, start each request with ForServiceUrl, add request data, and then call the required HTTP verb:
using KamiSama.Extensions.RestSharp;
services.AddHttpClient();
services.AddKamiSamaRestSharp();
ProductDto product = await restBuilder
.ForServiceUrl("https://api.example.com", "products/{id}")
.AddUrlSegment("id", 42)
.GetAsync<ProductDto>(cancellationToken);
IRestBuilder is scoped and stores the current request. Call ForServiceUrl before configuring every request, and do not share one builder across concurrent operations.
Namespaces
- KamiSama.Extensions.RestSharp (2 types)
- KamiSama.Extensions.RestSharp.Exceptions (2 types)
Types
- KamiSama.Extensions.RestSharp.IRestBuilder - Builds and executes one RestSharp request through a fluent API. Start each request with
ForServiceUrl, add the required request data, and then call an HTTP verb method. - KamiSama.Extensions.RestSharp.ServiceCollectionExtensions - Registers the RestSharp client and fluent request builder used by this package. Call
AddKamiSamaRestSharpduring service configuration after makingHttpClientavailable from dependency injection. - KamiSama.Extensions.RestSharp.Exceptions.InvalidResponseFromServerException - Represents an invalid response received by a UI client from a remote server. This exception uses the application-specific status code
-2and is not intended for backend HTTP responses. - KamiSama.Extensions.RestSharp.Exceptions.RequestTimedOutException - Represents a remote request timeout reported to a UI client. This exception uses the application-specific status code
-1and is not intended for backend HTTP responses.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. 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. |
-
net10.0
- KamiSama.Chassis.HttpExceptions (>= 10.0.11.6)
- KamiSama.Extensions.DependencyInjection (>= 10.0.11.6)
- KamiSama.Extensions.Json (>= 10.0.11.6)
- Microsoft.Extensions.Localization (>= 10.0.11)
- RestSharp (>= 114.0.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on KamiSama.Extensions.RestSharp:
| Package | Downloads |
|---|---|
|
KamiSama.ExternalServices.Email.Smtp
SMTP transport registration and configuration for KamiSama email services. The current implementation contains a known inverted validation defect that rejects complete SMTP settings; see package documentation before use. |
|
|
KamiSama.ExternalServices.Sms.NeoZarin
Scoped NeoZarin HTTP SMS provider registration and configuration for KamiSama SMS services. Requires KamiSama RestSharp and HttpClient registration and currently has an inverted validation defect. |
|
|
KamiSama.ExternalServices.Sms.Kavenegar
Scoped Kavenegar SMS provider registration and configuration for KamiSama SMS services. The current sender has an inverted validation defect that rejects a configured API key before sending. |
|
|
Polareum.Api
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.11.9 | 130 | 8/24/2026 |
| 10.0.11.8 | 133 | 8/21/2026 |
| 10.0.11.7 | 125 | 8/21/2026 |
| 10.0.11.6 | 221 | 8/19/2026 |
| 10.0.11.5 | 117 | 8/18/2026 |
| 10.0.11.4 | 127 | 8/18/2026 |
| 10.0.11.3 | 120 | 8/18/2026 |
| 10.0.11.2 | 119 | 8/18/2026 |
| 10.0.11.1 | 142 | 8/15/2026 |
| 10.0.11 | 119 | 8/11/2026 |
| 10.0.10.2 | 125 | 8/4/2026 |
| 10.0.0 | 100 | 8/18/2026 |