WebBeaver 2.0.1

.NET 7.0
dotnet add package WebBeaver --version 2.0.1
NuGet\Install-Package WebBeaver -Version 2.0.1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="WebBeaver" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WebBeaver --version 2.0.1
#r "nuget: WebBeaver, 2.0.1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install WebBeaver as a Cake Addin
#addin nuget:?package=WebBeaver&version=2.0.1

// Install WebBeaver as a Cake Tool
#tool nuget:?package=WebBeaver&version=2.0.1

WebBeaver

WebBeaver is a flexible web framework for c#.

Version Downloads

Installation

You can install WebBeaver with NuGet.

Example

using WebBeaver.Routing;
using WebBeaver.Net;
class Program
{
	static void Main(string[] args)
	{
		// Create a webserver on port 80
		Http server = new Http(80);

		// Create a new router that uses our webserver
		Router router = new Router(server);

		// Handle the log messages the router sends
		router.onLogMessage += (sender, log) =>
		{
			Console.WriteLine("[{0}] [{1}]\t{2}", log.Timestamp, log.Type, log.Message);
		};


		// Import routes
		router.Import(Home);
		
		// Start the webserver
		server.Start();
	}
	[Route("/")]
	static void Index(Request req, Response res)
	{
		res.SendFile("/view/index.html");
	}
}
Product Versions
.NET net7.0 net7.0-android net7.0-ios net7.0-maccatalyst net7.0-macos net7.0-tvos net7.0-windows
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.0.1 134 1/16/2023
2.0.0 152 12/10/2022
1.3.1 308 2/26/2022
1.3.0 182 12/26/2021
1.2.0 200 12/4/2021
1.1.0 1,110 11/20/2021
1.0.0 307 11/18/2021