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