win2kp.HttpListenerImpl 1.0.1

易于使用的HttpListener封装库,事件方式实现对客户端的请求处理。支持SSL,摘要式身份验证,客户端会话,简化的JSON POST处理方式,建议用于嵌入服务类程序作为接口使用

Install-Package win2kp.HttpListenerImpl -Version 1.0.1
dotnet add package win2kp.HttpListenerImpl --version 1.0.1
<PackageReference Include="win2kp.HttpListenerImpl" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add win2kp.HttpListenerImpl --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: win2kp.HttpListenerImpl, 1.0.1"
For F# scripts that support #r syntax, copy this into the source code to reference the package.
    private static HttpAppController.HttpAppController app = null;
    static void Main(string[] args)
    {
        app = new HttpAppController.HttpAppController(new Dictionary<string, string>() {
            { "%title%","Title display in html page" }
        }, cmdPrefix: "/api")
        {
            RouteMap = "{Controller}/{Action}",
            RequestMode = RequestProcessMode.ApiControllerWithRouteMap,
            AllowFileAccess = true
        };
        app.Error += App_Error;
        app.Start();

        while (true)
        {
            Console.ReadKey();
        }
    }
    private static HttpAppController.HttpAppController app = null;
    static void Main(string[] args)
    {
        app = new HttpAppController.HttpAppController(new Dictionary<string, string>() {
            { "%title%","Title display in html page" }
        }, cmdPrefix: "/api")
        {
            RouteMap = "{Controller}/{Action}",
            RequestMode = RequestProcessMode.ApiControllerWithRouteMap,
            AllowFileAccess = true
        };
        app.Error += App_Error;
        app.Start();

        while (true)
        {
            Console.ReadKey();
        }
    }

Release Notes

First upload

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.0.1 217 7/1/2019
1.0.0 174 6/27/2019