public HttpServer(Context context, HttpConnectionCallback callback, Socket socket, bool closeOnEnd = false) { this.callback = callback; this.socket = socket; this.closeOnEnd = closeOnEnd; this.Context = context; }
public HttpServer(IOLoop loop, HttpConnectionCallback callback, Socket socket, bool closeOnEnd = false) { this.callback = callback; this.socket = socket; this.closeOnEnd = closeOnEnd; this.IOLoop = loop; }
public HttpServer(Context context, HttpConnectionCallback callback, ITcpServerSocket socket, bool closeOnEnd = false) { this.callback = callback; this.socket = socket; this.closeOnEnd = closeOnEnd; this.Context = context; }
public HttpServer(HttpConnectionCallback callback, IOLoop ioloop) { this.callback = callback; this.ioloop = ioloop; AppHost.AddTimeout (TimeSpan.FromMinutes (2), RepeatBehavior.Forever, null, ExpireTransactions); }
public HttpTransaction(HttpServer server, IOStream stream, Socket socket, HttpConnectionCallback callback) { Server = server; IOStream = stream; Socket = socket; ConnectionCallback = callback; write_ops = new Queue<IWriteOperation> (); stream.ReadUntil ("\r\n\r\n", OnHeaders); }
public HttpTransaction(HttpServer server, Socket socket, HttpConnectionCallback callback, bool closeOnEnd = false) { Server = server; Socket = socket; this.closeOnEnd = closeOnEnd; ConnectionCallback = callback; gc_handle = GCHandle.Alloc (this); Request = new HttpRequest (this, socket); Request.Read (Close); }
public HttpTransaction(HttpServer server, Socket socket, HttpConnectionCallback callback, bool closeOnEnd = false) { Server = server; Socket = socket; this.closeOnEnd = closeOnEnd; ConnectionCallback = callback; gc_handle = GCHandle.Alloc(this); Request = new HttpRequest(this, socket); Request.Read(Close); }
public HttpTransaction(HttpServer server, IOStream stream, Socket socket, HttpConnectionCallback callback) { Server = server; IOStream = stream; Socket = socket; ConnectionCallback = callback; stream.OnClose (OnClose); parser_settings = CreateParserSettings (); parser = new HttpParser (); stream.ReadBytes (OnBytesRead); }
public HttpTransaction(HttpServer server, SocketStream stream, HttpConnectionCallback callback) { Server = server; Stream = stream; ConnectionCallback = callback; gc_handle = GCHandle.Alloc (this); Stream.Closed += delegate (object sender, EventArgs args) { Close (); }; Request = new HttpRequest (this, stream); Request.Read (); }
public HttpTransaction(HttpServer server, SocketStream stream, HttpConnectionCallback callback) { Server = server; Stream = stream; ConnectionCallback = callback; gc_handle = GCHandle.Alloc(this); Stream.Closed += delegate(object sender, EventArgs args) { Close(); }; Request = new HttpRequest(this, stream); Request.Read(); }
public static HttpTransaction BeginTransaction(HttpServer server, ISocketStream stream, HttpConnectionCallback cb, bool closeOnEnd = false) { HttpTransaction transaction = new HttpTransaction (server, stream, cb, closeOnEnd); return transaction; }
public static HttpTransaction BeginTransaction(HttpServer server, SocketStream stream, HttpConnectionCallback cb) { HttpTransaction transaction = new HttpTransaction (server, stream, cb); return transaction; }
public HttpServer(HttpConnectionCallback callback, ISocketStream socket, bool closeOnEnd = false) { this.callback = callback; this.socket = socket; this.closeOnEnd = closeOnEnd; }
public static void BeginTransaction(HttpServer server, IOStream stream, Socket socket, HttpConnectionCallback cb) { HttpTransaction transaction = new HttpTransaction (server, stream, socket, cb); }
public HttpServer(HttpConnectionCallback callback, IOLoop ioloop) { this.callback = callback; this.ioloop = ioloop; }
public static HttpTransaction BeginTransaction(HttpServer server, Socket socket, HttpConnectionCallback cb, bool closeOnEnd = false) { HttpTransaction transaction = new HttpTransaction(server, socket, cb, closeOnEnd); return(transaction); }
public HttpServer(HttpConnectionCallback callback, IOLoop ioloop, bool closeOnEnd = false ) { this.callback = callback; this.ioloop = ioloop; this.closeOnEnd = closeOnEnd; }
public static HttpTransaction BeginTransaction(HttpServer server, ITcpSocket socket, HttpConnectionCallback cb, bool closeOnEnd = false) { var transaction = new HttpTransaction(server, socket, cb, closeOnEnd); return transaction; }
public static HttpTransaction BeginTransaction(HttpServer server, SocketStream stream, HttpConnectionCallback cb) { HttpTransaction transaction = new HttpTransaction(server, stream, cb); return(transaction); }
public HttpServer(HttpConnectionCallback callback, IOLoop ioloop, bool closeOnEnd = false) { this.callback = callback; this.ioloop = ioloop; this.closeOnEnd = closeOnEnd; }