public FastcgiRequest GetOrCreateFastcgiRequest(ushort RequestId) { if (!Requests.ContainsKey(RequestId)) { return(Requests[RequestId] = new FastcgiRequest(this, RequestId)); } return(Requests[RequestId]); }
public FastcgiRequest GetOrCreateFastcgiRequest(ushort RequestId) { if (!Requests.ContainsKey(RequestId)) { return Requests[RequestId] = new FastcgiRequest(this, RequestId); } return Requests[RequestId]; }
protected virtual void HandleFascgiRequest(FastcgiRequest FastcgiRequest) { using (var TextWriter = new StreamWriter(FastcgiRequest.StdoutStream)) { TextWriter.WriteLine("X-Dynamic: C#"); TextWriter.WriteLine("Content-Type: text/html; charset=utf-8"); TextWriter.WriteLine(""); TextWriter.WriteLine("Not Implemented"); } }
public FascgiResponseOutputStream(FastcgiRequest FastcgiRequest, Fastcgi.PacketType PacketType) { this.FastcgiRequest = FastcgiRequest; this.PacketType = PacketType; this.Buffer = new MemoryStream(); }