internal HttpResponse(StateObject state, Request req) : base(state, req) { this.Headers = new NameValueCollection(); this.Headers.Add("Server", "Fusion"); this.Headers.Add("Date", DateTime.Now.ToUniversalTime().ToString()); this.Status = "200 OK"; }
internal Request(StateObject state, string body) { this.NetState = state; this.Body = body; }
internal HttpRequest(StateObject state, string headers, string body) : base(state, body) { _headers = new NameValueCollection(); this.HeadersRaw = headers; }
internal Response(StateObject state, Request req) { this.Buffer = new byte[0]; this.NetState = state; this.Request = req; }