Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cosmosos/cosmoshttp
https://github.com/cosmosos/cosmoshttp
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/cosmosos/cosmoshttp
- Owner: CosmosOS
- License: bsd-3-clause
- Created: 2023-12-10T12:56:39.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-18T13:23:16.000Z (about 1 year ago)
- Last Synced: 2024-06-29T09:15:16.814Z (7 months ago)
- Language: C#
- Size: 78.1 KB
- Stars: 4
- Watchers: 7
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
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](https://github.com/CosmosOS/CosmosHttp/issues/1) for todo list.## Usage
### Installation
Install the Nuget Package from [Nuget](https://www.nuget.org/packages/CosmosHttp/):
```PM
Install-Package CosmosHttp -Version 1.0.4
``````PM
dotnet add PROJECT package CosmosHttp --version 1.0.4
```Or add these lines to your Cosmos kernel .csproj:
```
```
### Examples
```CS
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](https://github.com/aura-systems/Aura-Operating-System/blob/master/SRC/Aura_OS/System/Interpreter/Commands/Network/Wget.cs#L63).
## Authors
👤 **[@valentinbreiz](https://github.com/valentinbreiz)**
👤 **[@2881099](https://github.com/2881099)**
## 🤝 Contributing
Contributions, issues and feature requests are welcome! Feel free to check [issues page](https://github.com/CosmosOS/CosmosHttp/issues).
## Show your support
Give a ⭐️ if this project helped you!
## 📝 License
Copyright © 2023 [CosmosOS](https://github.com/CosmosOS). This project is [BSD Clause 3](https://github.com/CosmosOS/CosmosHttp/blob/main/LICENSE.txt) licensed.