Oakrey.Network.Rest
2.0.2
See the version list below for details.
dotnet add package Oakrey.Network.Rest --version 2.0.2
NuGet\Install-Package Oakrey.Network.Rest -Version 2.0.2
<PackageReference Include="Oakrey.Network.Rest" Version="2.0.2" />
<PackageVersion Include="Oakrey.Network.Rest" Version="2.0.2" />
<PackageReference Include="Oakrey.Network.Rest" />
paket add Oakrey.Network.Rest --version 2.0.2
#r "nuget: Oakrey.Network.Rest, 2.0.2"
#:package Oakrey.Network.Rest@2.0.2
#addin nuget:?package=Oakrey.Network.Rest&version=2.0.2
#tool nuget:?package=Oakrey.Network.Rest&version=2.0.2
Oakrey.Network.Rest
1. Overview
The "RestClient" project is a .NET library designed to simplify HTTP communication by providing a reactive and extensible client for RESTful APIs. It supports common HTTP methods and integrates with reactive programming to enable real-time monitoring of requests and responses.
Features
HTTP Methods:
Supports GET, POST, PUT, and DELETE operations through the RestClient class. Provides a unified interface (IRestClient) for sending HTTP requests.
Reactive Programming:
Implements IObservable<HttpResponseMessage> to allow subscribers to monitor HTTP responses in real-time. Tracks outgoing requests using a reactive ReplaySubject.
Customizable Settings:
Supports different content types (e.g., JSON, XML, plain text) via the IRestSetting interface and its implementations (JsonRestSettings, XmlRestSettings, TextRestSettings).
Command-Based Execution:
Encapsulates HTTP requests in the RestCommand class, enabling command-based execution of REST operations.
Error Handling:
Logs errors and propagates them to subscribers for robust error management.
Extensibility:
Easily extendable with additional HTTP methods (MethodType enum) and custom settings.
2. Installation
You can install the package via NuGet Package Manager, Package Manager Console or the .NET CLI.
NuGet Package Manager
- Open your project in Visual Studio.
- Navigate to Tools > NuGet Package Manager > Manage NuGet Packages for Solution....
- Search for
Oakrey.Network.Restand click Install.
.NET CLI
Run the following command in your terminal:
dotnet add package Oakrey.Network.Rest
Package Manager Console
Run the following command in your Package Manager Console:
Install-Package Oakrey.Network.Rest
3. Requirements
- .NET 8 or higher
4. Project Information
- Author: Oakrey
- Company: Oakrey (Website Link)
- License: MIT
- Repository: Git Repository
- Project URL: Project Website
5. Contributing
Contributions are welcome! Feel free to open issues or submit pull requests to improve the package.
6. License
This project is licensed under the MIT License. See the LICENSE file for details.
| 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
- Oakrey.Log (>= 2.0.0)
- System.Reactive (>= 6.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Oakrey.Network.Rest:
| Package | Downloads |
|---|---|
|
Oakrey.Hue.ApiV1
Model and DTO library for the Philips Hue REST API v1. Provides System.Text.Json-annotated types for lights, state, capabilities, config, streaming, and connection info. No HTTP client included — compose with HttpClient or any REST library. |
GitHub repositories
This package is not used by any popular GitHub repositories.