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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
WebBeaver
WebBeaver is a flexible web framework for c#.
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.
-
net7.0
- MimeTypeMapOfficial (>= 1.0.17)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.