- Routing
- API REST (Controller/Method + automatic json serialization/deserialization)
- Json Web Token
- Websocket
- Server Sent Events
- Static Files
- OpenTelemetry
The minimal API
using System;
using System.Net;
using SimpleW;
namespace Sample {
class Program {
static void Main() {
// 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 non blocking background server
server.Start();
Console.WriteLine("server started at http://localhost:2015/");
// block console for debug
Console.ReadKey();
}
}
}To check out docs, visit stratdev3.github.io.
Detailed changes for each release are documented in the CHANGELOG.
Feel free to report issue.
This library is under the MIT License.