- 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 async Task 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 !" };
});
Console.WriteLine("server started at http://localhost:{server.Port}/");
// start a blocking background server
await server.RunAsync();
}
}
}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.
