SerializableHttps 1.1.2

dotnet add package SerializableHttps --version 1.1.2
                    
NuGet\Install-Package SerializableHttps -Version 1.1.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="SerializableHttps" Version="1.1.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SerializableHttps" Version="1.1.2" />
                    
Directory.Packages.props
<PackageReference Include="SerializableHttps" />
                    
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 SerializableHttps --version 1.1.2
                    
#r "nuget: SerializableHttps, 1.1.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 SerializableHttps@1.1.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=SerializableHttps&version=1.1.2
                    
Install as a Cake Addin
#tool nuget:?package=SerializableHttps&version=1.1.2
                    
Install as a Cake Tool

<p align="center"> <img src="https://github.com/user-attachments/assets/8ae7bc6c-2243-47dc-aec1-4660514c39b2" width="200" height="200" /> </p>

Build and Publish Nuget Nuget GitHub last commit (branch) GitHub commit activity (branch) Static Badge Static Badge Static Badge

SerializableHttps

This is a project to make it easier to work with the HttpClient in C#.

The idea is that instead of manually serialising and deserialising json content, you can just let this library do it for you!

In its most simple form, a HTTP call can be made as follows:

var input = new InputModel(){
	Value = 34512,
	Name = "something"
};
var client = new SerializableHttpsClient();
var result = client.Post<InputModel,OutputModel>(input, "https://localhost/test");

The library will then automatically serialise the input model correctly, and deserialise the response into the OutputModel;

Usually, all the body serialisation is in JSON format, however you can also give it a XElement as an input or output and it will serialise/deserialise as XML instead of JSON.

You can also use it to transfer file streams. There is a base model for file streaming, called FileDataModel, where a stream can be set to it. The library will then serialise and deserialise it as a stream instead of a JSON document.

The serialisation used depends on the call, i.e. if its a POST, PATCH, GET or DELETE:

  • DELETE and GET: Serialises the input model as a query string in the URL.
  • POST and PATCH: Serialises the input model as JSON.

For this system to work, all the input and output models must be serialisable (i.e. no dynamic or object!)

You can find the project as a package on the NuGet Package Manager.

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net9.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on SerializableHttps:

Package Downloads
OpenWebUISharp

A simple wrapper for OpenWebUI for easier interaction

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.1.2 155 9/26/2025
1.1.1 250 9/15/2025
1.0.12 162 8/15/2025
1.0.11 398 4/23/2025
1.0.10 251 12/5/2024
1.0.9 165 9/28/2024
1.0.8 157 9/11/2024
1.0.7 129 9/11/2024
1.0.6 126 9/2/2024
1.0.5 124 9/2/2024
1.0.4 136 9/2/2024
1.0.3 133 8/29/2024
1.0.2 117 8/28/2024
1.0.1 131 8/28/2024
1.0.0 180 8/22/2024