An open API service indexing awesome lists of open source software.

https://github.com/stratdev3/simplew

Modern Web Server for .NET. Designed for Simplicity. Built for Speed.
https://github.com/stratdev3/simplew

api dotnet http http-server https performance rest restapi sse webserver websocket websocket-server

Last synced: 27 days ago
JSON representation

Modern Web Server for .NET. Designed for Simplicity. Built for Speed.

Awesome Lists containing this project

README

          

# SimpleW

[![website](https://raw.githubusercontent.com/stratdev3/SimpleW/refs/heads/master/documentation/simplew/docs/public/simplew-og.png)](https://simplew.net)

[![NuGet Package](https://img.shields.io/nuget/v/SimpleW)](https://www.nuget.org/packages/SimpleW)
![NuGet Downloads](https://img.shields.io/nuget/dt/SimpleW)
[![License](https://img.shields.io/badge/License-MIT-green.svg)](licence)


[![Linux](https://github.com/stratdev3/SimpleW/actions/workflows/build-linux.yml/badge.svg)](https://github.com/stratdev3/SimpleW/actions/workflows/build-linux.yml)
[![MacOS](https://github.com/stratdev3/SimpleW/actions/workflows/build-macos.yml/badge.svg)](https://github.com/stratdev3/SimpleW/actions/workflows/build-macos.yml)
[![Windows (Visual Studio)](https://github.com/stratdev3/SimpleW/actions/workflows/build-windows.yml/badge.svg)](https://github.com/stratdev3/SimpleW/actions/workflows/build-windows.yml)

### Getting Started

The minimal API

```cs
using System;
using System.Net;
using SimpleW;
using SimpleW.Observability;

namespace Sample {
class Program {

static async Task Main() {

// debug log
Log.SetSink(Log.ConsoleWriteLine, LogLevel.Debug);

// listen to all IPs port 2015
var server = new SimpleWServer(IPAddress.Any, 2015);

// minimal api
server.MapGet("/api/test", () => {
return new { message = "Hello World !" };
});

// start a blocking background server
await server.RunAsync();
}
}

}
```

## Documentation

To check out docs, visit [simplew.net](https://simplew.net).

## Changelog

Detailed changes for each release are documented in the [CHANGELOG](https://github.com/stratdev3/SimpleW/blob/master/release.md).

## Contribution

Feel free to report issue.

## License
This library is under the MIT License.