Exemplo n.º 1
0
 public HttpState(IStateSource source, HttpConfig config)
 {
     _source    = source;
     _config    = config;
     _keepalive = false;
 }
Exemplo n.º 2
0
 public WebSocketState(IContext context, IStateSource source, HttpConfig config)
 {
     _source = source;
     _config = config;
     context.FireNextRead(FrameRequest.CreateConnectedRequest());
 }
Exemplo n.º 3
0
 public HttpServerHandler(HttpConfig config)
 {
     _config = config;
     //初始为http
     _currentState = new HttpState(this, _config);
 }