Features • Roadmap • Documentation • Installing • Example • Credits
- Controllers
- Routing
- Params
- Cookies
- GET, POST, PUT, PATCH, DELETE
- Json & Plain Text Responses
- Routing
- Custom Services
Poly web currently dosen't have any documentation. I would like to do this soon once the core features are done.
Install-Package Polyweb
dotnet add package Polyweb
Make sure to fill in the version with the latest version from NuGet
<PackageReference Include="Polyweb" Version="" />
Make sure to fill in the version with the latest version from NuGet
paket add Polyweb
Add the BaGet Index (http://harryet.me/v3/index.json
) as a source for NuGet, then follow the Nuget Instructions
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);
}
}
}