Sisk.HttpServer 0.4.8

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package Sisk.HttpServer --version 0.4.8
                    
NuGet\Install-Package Sisk.HttpServer -Version 0.4.8
                    
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="Sisk.HttpServer" Version="0.4.8" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sisk.HttpServer" Version="0.4.8" />
                    
Directory.Packages.props
<PackageReference Include="Sisk.HttpServer" />
                    
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 Sisk.HttpServer --version 0.4.8
                    
#r "nuget: Sisk.HttpServer, 0.4.8"
                    
#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.
#addin nuget:?package=Sisk.HttpServer&version=0.4.8
                    
Install Sisk.HttpServer as a Cake Addin
#tool nuget:?package=Sisk.HttpServer&version=0.4.8
                    
Install Sisk.HttpServer as a Cake Tool

<p align="center"> <img width="100%" height="auto" src="https://i.imgur.com/RCljAQs.png"> </p>

Sisk is a powerful micro-framework for building powerful Restful web APIs. It was written using .NET 6 and Microsoft-HTTPAPI/2.0 as their HTTP Engines. Currently, this micro-framework is suitable for building restful APIs, in a structured and object-oriented way. There is no native support for frontend rendering, templates or database connection. You can extend it as you see fit.

Features

  • Ultra fast response/second average
  • Support to operating system's native WebSocket control
  • Sustainable and maintainable
  • Abstract of usage models
  • Database-agnostic
  • Compatible implementation with *nix, Mac OS and Windows
  • Asynchronous
  • Request handling before callback support
  • Built-in configurable rate limiter
  • Configurable error handling
  • Support to log access logs
  • Easy Cross-Origin Resource Sharing setup
  • Written in C# using the Microsoft-HTTPAPI/2.0 (same as IIS)

Note: this micro-framework only works for HTTP and not HTTPS. To use it over TLS/HTTPS, use a reverse proxy.

Documentation

You can access the Sisk documentation here.

Installation

You can install the latest release from Nuget:

PM> dotnet add package Sisk.HttpServer

And then you can start building your own HTTP api, like this:

using Sisk.Core.Http;
using Sisk.Core.Routing;

internal class Program
{
    static void Main(string[] args)
    {
        Router router = new ();
        router.SetRoute(RouteMethod.Get, "/", (req) =>
        {
            return HttpResponse.CreateOK("Hello, world!");
        });

        HttpServerConfiguration configuration = new () {
            ListeningPort = 5555
        };

        HttpServer server = new HttpServer(router, configuration);

        Console.WriteLine("Sisk is listening on HTTP localhost:{0}", server.ListeningPort);
        server.Start();

        while(true) { }
    }
}
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on Sisk.HttpServer:

Package Downloads
Sisk.ServiceProvider

This package includes tools for easily porting your Sisk service.

Sisk.IniConfiguration

This package provides an INI configuration provider for Sisk projects.

Sisk.SslProxy

This package provides an experimental SSL proxy for the Sisk Framework and other .NET projects.

Sisk.BasicAuth

This package includes an helper for embeding basic authentication in your applications made with Sisk.

Sisk.JsonRpc

This package provides an JSON-RPC 2.0 interface for Sisk projects.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.4.3 145 5/2/2025
1.4.2 217 4/8/2025
1.4.1 371 3/29/2025
1.4.1-beta1 145 3/17/2025
1.4.0.1 282 2/10/2025
1.4.0-beta3 182 1/22/2025
1.4.0-beta2 79 1/19/2025
1.4.0-beta1 74 1/14/2025
1.3.2 169 1/2/2025
1.3.1 170 12/12/2024
1.3.0 163 11/13/2024
1.3.0-rc5 109 11/10/2024
1.3.0-rc4 84 11/9/2024
1.3.0-rc2 91 11/5/2024
1.3.0-rc 82 11/5/2024
1.2.0 155 10/29/2024
1.1.1 1,232 10/17/2024
1.1.0 262 9/22/2024
1.0.4 97 10/17/2024
1.0.3 184 9/13/2024
1.0.2 177 9/1/2024
1.0.1 180 8/28/2024
1.0.0 186 8/16/2024
1.0.0-rc8 142 8/13/2024
1.0.0-rc7 98 8/1/2024
1.0.0-rc6 79 7/24/2024
1.0.0-rc4 93 7/10/2024
1.0.0-rc3 82 7/4/2024
1.0.0-rc2 106 6/24/2024
1.0.0-rc1 115 6/7/2024
0.16.2 659 4/28/2024
0.16.2-beta4 122 4/24/2024
0.16.1 385 2/26/2024
0.16.0 2,295 1/9/2024
0.16.0-rc-5 265 1/3/2024
0.16.0-rc-4 139 12/21/2023
0.16.0-rc-3 153 12/7/2023
0.16.0-rc-2 151 11/25/2023
0.16.0-rc-1 132 11/13/2023
0.15.3.1 139 2/19/2024
0.15.3 229 11/25/2023
0.15.2 815 10/30/2023
0.15.1 215 9/30/2023
0.15.0.47 254 8/30/2023
0.15.0.47-rc 72 8/25/2023
0.15.0.46-beta 86 8/22/2023
0.15.0.42-beta 174 8/16/2023
0.15.0.6-beta 182 8/9/2023
0.15.0-beta 187 7/20/2023
0.14.0.1 244 7/18/2023
0.14.0 209 7/17/2023
0.13.1.1 217 6/10/2023
0.13.1 223 6/8/2023
0.13.0 230 5/20/2023
0.12.1 206 5/2/2023
0.12.0 224 4/29/2023
0.11.1 218 4/9/2023
0.11.0 275 3/30/2023
0.10.1 264 3/21/2023
0.10.0 253 3/15/2023
0.9.1 291 3/2/2023
0.9.0 278 2/22/2023
0.8.9 279 2/14/2023
0.8.8 299 2/8/2023
0.8.6 331 2/2/2023
0.8.5 317 2/1/2023
0.8.4 347 1/31/2023 0.8.4 is deprecated because it has critical bugs.
0.8.3 331 1/26/2023
0.8.2 364 1/10/2023
0.8.1 344 1/7/2023
0.8.0 351 1/6/2023
0.7.5 328 12/28/2022
0.7.4 357 12/27/2022
0.7.3 333 12/26/2022
0.7.2 351 12/22/2022
0.7.1 341 12/21/2022
0.7.0 357 12/21/2022
0.6.4 330 12/13/2022
0.6.3 349 12/11/2022
0.6.2 359 12/11/2022
0.6.1 332 12/10/2022
0.6.0 343 12/9/2022
0.5.0 391 11/16/2022
0.4.8 404 10/30/2022
0.4.6 418 10/27/2022
0.4.1 439 10/19/2022
0.4.0 435 10/18/2022
0.3.1 454 10/15/2022
0.3.0 463 10/15/2022