private OnRequestCreated ( System.Net.Request request ) : void | ||
request | System.Net.Request | |
return | void |
internal Request( HttpServer server, SocketDataAdapter adapter, bool shouldKeepAlive, RequestLine line, HeaderCollection headers, RequestBody body ) { WeakServer = new WeakReference(server); LocalEndPoint = adapter.Socket.LocalEndPoint; RemoteEndPoint = adapter.Socket.RemoteEndPoint; Line = line; Headers = headers; Body = body; Response = new Response(this, adapter, shouldKeepAlive); server.OnRequestCreated(this); }
internal Request( HttpServer server, SocketDataAdapter adapter, bool shouldKeepAlive, RequestLine line, HeaderCollection headers, RequestBody body ) { QueuedWhenUTC = DateTime.UtcNow; WeakServer = new WeakReference(server); LocalEndPoint = adapter.Socket.LocalEndPoint; RemoteEndPoint = adapter.Socket.RemoteEndPoint; Line = line; Headers = headers; Body = body; Response = new Response(this, adapter, shouldKeepAlive); server.OnRequestCreated(this); }