建立Http请求响应模型,码神工具Http服务器测试通过
大石头 编写于 2017-04-14 01:16:44
X
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NewLife.Net;

namespace NewLife.Http
{
    /// <summary>Http服务器</summary>
    [DisplayName("Http服务器")]
    public class HttpServer : NetServer
    {
        /// <summary>实例化</summary>
        public HttpServer()
        {
            Name = "Http";
            Port = 80;
            ProtocolType = NetType.Http;

            // Http封包协议
            //SessionPacket = new PacketFactory { Offset = -1 };
        }
    }
}