CosmosHttp 1.0.4

dotnet add package CosmosHttp --version 1.0.4
NuGet\Install-Package CosmosHttp -Version 1.0.4
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="CosmosHttp" Version="1.0.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CosmosHttp --version 1.0.4
#r "nuget: CosmosHttp, 1.0.4"
#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.
// Install CosmosHttp as a Cake Addin
#addin nuget:?package=CosmosHttp&version=1.0.4

// Install CosmosHttp as a Cake Tool
#tool nuget:?package=CosmosHttp&version=1.0.4

CosmosHTTP Client [WIP]

CosmosHTTP is a HTTP client made in C# for the Cosmos operating system construction kit. GET and PUT are currently supported.

Todo

See this issue for todo list.

Usage

Installation

Install the Nuget Package from Nuget:

Install-Package CosmosHttp -Version 1.0.4
dotnet add PROJECT package CosmosHttp --version 1.0.4

Or add these lines to your Cosmos kernel .csproj:

<ItemGroup>
    <PackageReference Include="CosmosHttp" Version="1.0.4" />
</ItemGroup>

Examples

using CosmosHttp.Client;

HttpRequest request = new();
request.IP = "34.223.124.45";
request.Domain = "neverssl.com"; //very useful for subdomains on same IP
request.Path = "/";
request.Method = "GET";
request.Send();
Console.WriteLine(request.Response.Content); // or to get bytes Encoding.ASCII.getString(request.Response.GetStream())

Here is a basic wget command implementation using CosmosHttp: github.com/aura-systems/Aura-Operating-System.

Authors

👤 @valentinbreiz

👤 @2881099

🤝 Contributing

Contributions, issues and feature requests are welcome! Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2023 CosmosOS. This project is BSD Clause 3 licensed.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.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 CosmosHttp:

Package Downloads
com.Samma.forgium

boost your CosmosOS browser with Forgium, The best Html + Css 2/3 Renderer for cosmos yet.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on CosmosHttp:

Repository Stars
aura-systems/Aura-Operating-System
AuraOS, the Franco-English Operating System developed in C# using Cosmos!
Version Downloads Last updated
1.0.4 764 12/18/2023
1.0.3 134 12/12/2023
1.0.2 102 12/11/2023
1.0.1 78 12/11/2023
1.0.0 84 12/11/2023