Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stratdev3/SimpleW

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleW

website

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

Features

  1. Routing
  2. API REST (Controller/Method + automatic json serialization/deserialization)
  3. Json Web Token
  4. Websocket
  5. Server Sent Events
  6. Static Files
  7. 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.

About

SimpleW is Web server Library in .NET Core. Powerfully Simple and Blazingly Fast.

Topics

Resources

License

Stars

Watchers

Forks

Languages