A simple, asynchronous, and flexible web framework built on System.Net.HttpListener
. Pronounced "AS-eh-PIE."
dotnet add package Asypi
using Asypi;
Server server = new Server(8000, "localhost");
server.Route(
HttpMethod.Get,
"/",
() => { return "Hello World!"; },
"text/html"
);
server.Run();
- Simple declarative API
- Async support
- Flexible router supporting variable parameters
- Cached static file server supporting custom mount points
Asypi is not:
- Stable. Do not use Asypi if you need stability.
- Well-Tested. Do not use Asypi for mission-critical or security-critical applications.
- Suitable for production usage unless if you really know what you're doing.
Hopefully, as the project progresses, these caveats can be removed.
If you like this project and want to contribute, please come and do so! More information in CONTRIBUTING.md
Documentation for Asypi can be found on readthedocs.io.