Sisk.HttpServer 0.6.0

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. 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.6.0
NuGet\Install-Package Sisk.HttpServer -Version 0.6.0
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.6.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Sisk.HttpServer --version 0.6.0
#r "nuget: Sisk.HttpServer, 0.6.0"
#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 Sisk.HttpServer as a Cake Addin
#addin nuget:?package=Sisk.HttpServer&version=0.6.0

// Install Sisk.HttpServer as a Cake Tool
#tool nuget:?package=Sisk.HttpServer&version=0.6.0

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

Nuget

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

You can see more info in the docs.

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

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

namespace Sisk.Server
{
    internal class Program
    {
        public static HttpServer? Server { get; set; }
        public static Router? Router { get; set; }

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

            HttpServerConfiguration config = new HttpServerConfiguration();
            config.ListeningPort = 7488;

            Server = new(Router, config)
            {
                Verbose = true
            };

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

            Console.ReadKey();
        }
    }
}
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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net6.0

    • No dependencies.

NuGet packages (2)

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

Package Downloads
Sisk.ServiceProvider The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

This package includes tools for easily porting your Sisk service.

Sisk.BasicAuth The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

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

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.16.2 82 4/28/2024
0.16.2-beta4 80 4/24/2024
0.16.1 117 2/26/2024
0.16.0 1,035 1/9/2024
0.16.0-rc-5 195 1/3/2024
0.16.0-rc-4 89 12/21/2023
0.16.0-rc-3 95 12/7/2023
0.16.0-rc-2 114 11/25/2023
0.16.0-rc-1 96 11/13/2023
0.15.3.1 75 2/19/2024
0.15.3 180 11/25/2023
0.15.2 329 10/30/2023
0.15.1 171 9/30/2023
0.15.0.47 182 8/30/2023
0.15.0.47-rc 54 8/25/2023
0.15.0.46-beta 53 8/22/2023
0.15.0.42-beta 123 8/16/2023
0.15.0.6-beta 135 8/9/2023
0.15.0-beta 134 7/20/2023
0.14.0.1 200 7/18/2023
0.14.0 158 7/17/2023
0.13.1.1 158 6/10/2023
0.13.1 164 6/8/2023
0.13.0 169 5/20/2023
0.12.1 149 5/2/2023
0.12.0 162 4/29/2023
0.11.1 168 4/9/2023
0.11.0 219 3/30/2023
0.10.1 201 3/21/2023
0.10.0 201 3/15/2023
0.9.1 238 3/2/2023
0.9.0 225 2/22/2023
0.8.9 233 2/14/2023
0.8.8 245 2/8/2023
0.8.6 277 2/2/2023
0.8.5 263 2/1/2023
0.8.4 281 1/31/2023
0.8.3 271 1/26/2023
0.8.2 309 1/10/2023
0.8.1 296 1/7/2023
0.8.0 295 1/6/2023
0.7.5 270 12/28/2022
0.7.4 299 12/27/2022
0.7.3 280 12/26/2022
0.7.2 299 12/22/2022
0.7.1 288 12/21/2022
0.7.0 299 12/21/2022
0.6.4 279 12/13/2022
0.6.3 304 12/11/2022
0.6.2 312 12/11/2022
0.6.1 286 12/10/2022
0.6.0 296 12/9/2022
0.5.0 338 11/16/2022
0.4.8 343 10/30/2022
0.4.6 363 10/27/2022
0.4.1 384 10/19/2022
0.4.0 375 10/18/2022
0.3.1 391 10/15/2022
0.3.0 407 10/15/2022