Skip to content
This repository has been archived by the owner on May 1, 2021. It is now read-only.
/ Polyweb Public archive

Fast, 0 Dependency HTTP Server For Everyone.

License

Notifications You must be signed in to change notification settings

HarryET/Polyweb

Repository files navigation


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

About

Fast, 0 Dependency HTTP Server For Everyone.

Topics

Resources

License

Stars

Watchers

Forks

Languages