代理的DNAT和webapi

This commit is contained in:
snltty
2025-09-21 18:35:15 +08:00
parent 57a565a856
commit a8e5ff1f6f
66 changed files with 1811 additions and 483 deletions

View File

@@ -0,0 +1,27 @@
using System;
using System.Collections.Generic;
namespace linker.libs.web
{
/// <summary>
/// web服务
/// </summary>
public interface IWebApiServer
{
/// <summary>
/// 开始
/// </summary>
public void Start(int port);
public void AddController(IWebApiController controller);
public void AddControllers(List<IWebApiController> controllers);
}
public interface IWebApiController
{
public string Path { get; }
public Memory<byte> Handle(string query);
public void Free();
}
}