SimpleW
Features
- Routing
- API REST (Controller/Method + automatic json serialization/deserialization)
- Json Web Token
- Websocket
- Server Sent Events
- Static Files
- OpenTelemetry
Getting Started
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(); } } }
Documentation
To check out docs, visit stratdev3.github.io.
Changelog
Detailed changes for each release are documented in the CHANGELOG.
Contribution
Feel free to report issue.
License
This library is under the MIT License.
