SerializableHttps 1.1.2
dotnet add package SerializableHttps --version 1.1.2
NuGet\Install-Package SerializableHttps -Version 1.1.2
<PackageReference Include="SerializableHttps" Version="1.1.2" />
<PackageVersion Include="SerializableHttps" Version="1.1.2" />
<PackageReference Include="SerializableHttps" />
paket add SerializableHttps --version 1.1.2
#r "nuget: SerializableHttps, 1.1.2"
#:package SerializableHttps@1.1.2
#addin nuget:?package=SerializableHttps&version=1.1.2
#tool nuget:?package=SerializableHttps&version=1.1.2
<p align="center"> <img src="https://github.com/user-attachments/assets/8ae7bc6c-2243-47dc-aec1-4660514c39b2" width="200" height="200" /> </p>
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 | Versions 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. |
-
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 |