增加IHttpHost,解除HttpSession对HttpServer的依赖; IHttpContext增加ISocketRemote,解除其对INetSession的依赖; 优化WebSocketCodec,便于配合标准编码器使用
智能大石头
编写于
2024-05-09 00:15:22
X
namespace NewLife.Http;
/// <summary>Http主机服务</summary>
public interface IHttpHost
{
/// <summary>匹配处理器</summary>
/// <param name="path"></param>
/// <param name="request"></param>
/// <returns></returns>
IHttpHandler? MatchHandler(String path, HttpRequest? request);
}
|