Skip to content

Repository files navigation

SimpleW

website

License NuGet Package NuGet Downloads
Linux MacOS Windows (Visual Studio)

Getting Started

The minimal API

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 !" };
            });

            // run server
            await server.RunAsync();
        }
    }

}

Documentation

To check out docs, visit simplew.net.

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.

About

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

Topics

Resources

Stars

100 stars

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages