Go to file
Mike Nolan 51d96a9659 Fixed a non fatal endian issue when printing IP addresses on big endian systems 2022-10-24 17:16:29 -05:00
Tesses.WebServer.EasyServer Fixed a non fatal endian issue when printing IP addresses on big endian systems 2022-10-24 17:16:29 -05:00
Tesses.WebServer.Swagme Fix swagme POST 2022-10-23 19:27:36 -05:00
Tesses.WebServer.SwagmeTest Fix swagme POST 2022-10-23 19:27:36 -05:00
README.md Initial commit 2022-09-30 03:27:12 -05:00
Tesses.WebServer.Extras.sln Initial commit 2022-09-30 03:27:12 -05:00

README.md

Tesses.WebServer.Extras

EasyServer Stats

Tesses.WebServer.EasyServer Nuget

Tesses.WebServer Downloads

Swagme Stats

Tesses.WebServer Nuget

Tesses.WebServer Downloads


How to use Easy Server, ex for a static website

using Tesses.WebServer;

StaticServer server=new StaticServer("website");
server.StartServer(4000);

How to use Swagme

using Tesses.WebServer;
using Tesses.WebServer.Swagme;

int value=0;
SwagmeServer svr=new SwagmeServer();
svr.AbsoluteUrl=true;
svr.Add("/Progress",async (e)=>{
    await e.SendJsonAsync(new{Progress=50});
},new SwagmeDocumentation("Description","Extended Description"),group: "Getting Values");
RouteServer rsvr=new RouteServer();
rsvr.Add("/",(e)=>{
    e.SendText("...html...");
});

MountableServer mount =new MountableServer(rsvr);
mount.Mount("/api/",svr);

mount.StartServer(4202);

The frontend for Swagme uses Bootstrap