Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

stratdev3/SimpleW

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 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();
 }
 }
}

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.

AltStyle によって変換されたページ (->オリジナル) /