CCSWE.nanoFramework.WebServer 1.1.141

There is a newer version of this package available.
See the version list below for details.
dotnet add package CCSWE.nanoFramework.WebServer --version 1.1.141
                    
NuGet\Install-Package CCSWE.nanoFramework.WebServer -Version 1.1.141
                    
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="CCSWE.nanoFramework.WebServer" Version="1.1.141" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CCSWE.nanoFramework.WebServer" Version="1.1.141" />
                    
Directory.Packages.props
<PackageReference Include="CCSWE.nanoFramework.WebServer" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CCSWE.nanoFramework.WebServer --version 1.1.141
                    
#r "nuget: CCSWE.nanoFramework.WebServer, 1.1.141"
                    
#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.
#:package CCSWE.nanoFramework.WebServer@1.1.141
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CCSWE.nanoFramework.WebServer&version=1.1.141
                    
Install as a Cake Addin
#tool nuget:?package=CCSWE.nanoFramework.WebServer&version=1.1.141
                    
Install as a Cake Tool

Build License NuGet

CCSWE.nanoFramework.WebServer

A simple asynchronous web server for nanoFramework modelled after ASP.NET Core. See the WebServer sample for a complete example.

Features

  • Attribute-based controllers with routing and parameter binding
  • Custom middleware via IMiddleware
  • Request thread pool for concurrent request processing
  • Pluggable authentication via IAuthenticationProvider
  • HTTPS support

Quick Start

Controller

[Route("api/status")]
public class StatusController : ControllerBase
{
    [HttpGet]
    public void Get()
    {
        Ok("running");
    }
}

Middleware

public class LoggingMiddleware : IMiddleware
{
    public void Invoke(HttpListenerContext context, MiddlewareDelegate next)
    {
        // pre-processing
        next(context);
        // post-processing
    }
}

DI Registration

Register controllers individually or let reflection discover all controllers in an assembly:

services.AddWebServer(options =>
{
    options.Port = 80;
})
.AddMiddleware(typeof(LoggingMiddleware))
.AddController(typeof(StatusController));  // register one controller explicitly

AddControllers uses reflection to scan an assembly and automatically register every class that derives from ControllerBase, eliminating the need to list them individually:

services.AddWebServer(options =>
{
    options.Port = 80;
})
.AddMiddleware(typeof(LoggingMiddleware))
.AddControllers();                         // scans the executing assembly
// or target a specific assembly:
.AddControllers(Assembly.GetExecutingAssembly());
Product Compatible and additional computed target framework versions.
.NETnanoFramework netnano1.0 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
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
1.1.143 39 7/11/2026
1.1.142 110 7/1/2026
1.1.141 99 6/30/2026
1.1.140 142 6/26/2026
1.1.139 107 6/24/2026
1.1.138 97 6/24/2026
1.1.137 105 6/24/2026
1.1.136 118 6/23/2026
1.1.135 112 6/1/2026
1.1.134 108 6/1/2026
1.1.133 104 6/1/2026
1.1.130 109 5/31/2026
1.1.129 130 4/23/2026
1.1.128 116 4/23/2026
1.1.127 131 4/15/2026
1.1.124 121 4/15/2026
1.1.123 118 4/14/2026
1.1.122 112 4/13/2026
1.1.117 114 4/13/2026
1.1.114 121 4/10/2026
Loading failed