Oakrey.Network.Rest 2.0.2

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Oakrey.Network.Rest" Version="2.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Oakrey.Network.Rest" Version="2.0.2" />
                    
Directory.Packages.props
<PackageReference Include="Oakrey.Network.Rest" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Oakrey.Network.Rest --version 2.0.2
                    
#r "nuget: Oakrey.Network.Rest, 2.0.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Oakrey.Network.Rest@2.0.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Oakrey.Network.Rest&version=2.0.2
                    
Install as a Cake Addin
#tool nuget:?package=Oakrey.Network.Rest&version=2.0.2
                    
Install as a Cake Tool

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

  1. Open your project in Visual Studio.
  2. Navigate to Tools > NuGet Package Manager > Manage NuGet Packages for Solution....
  3. Search for Oakrey.Network.Rest and 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

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.

Version Downloads Last Updated
2.0.4 120 5/22/2026
2.0.3 96 5/15/2026
2.0.2 132 2/2/2026
2.0.1 122 2/2/2026
2.0.0 448 11/18/2025
1.1.0 283 8/28/2025
1.0.0 284 4/17/2025