/Polyweb

Fast, 0 Dependency HTTP Server For Everyone.

Primary LanguageC#GNU Affero General Public License v3.0AGPL-3.0


Polyweb Icon
Polyweb


Fast, 0 Dependency Http For Everyone.


Discord Server Invite GPL v3 Licence Nuget (with prereleases)


FeaturesRoadmapDocumentationInstallingExampleCredits



Features

  • Controllers
    • Routing
      • Params
      • Cookies
    • GET, POST, PUT, PATCH, DELETE
    • Json & Plain Text Responses
  • Custom Services

Roadmap

Documentation

Poly web currently dosen't have any documentation. I would like to do this soon once the core features are done.

Installing

NuGet

Install-Package

Install-Package Polyweb

.Net CLI

dotnet add package Polyweb

Package Reference

Make sure to fill in the version with the latest version from NuGet

<PackageReference Include="Polyweb" Version="" />

Paket CLI

Make sure to fill in the version with the latest version from NuGet

paket add Polyweb

BaGet

Add the BaGet Index (http://harryet.me/v3/index.json) as a source for NuGet, then follow the Nuget Instructions

Example

namespace Polyweb.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            PolywebServer polyweb = new PolywebServer();
            
            polyweb.RegisterProvider<DataProvider>();
            polyweb.RegisterProvider<AuthenticationProvider>();
            
            polyweb.RegisterService<IServiceName, ServiceName>();
            
            polyweb.RegisterController<Controllers.Index>();
            
            polyweb.Listen(8080);
        }
    }
}