Esempio n. 1
0
        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";
        }
Esempio n. 2
0
 internal Request(StateObject state, string body)
 {
     this.NetState = state;
     this.Body = body;
 }
Esempio n. 3
0
 internal HttpRequest(StateObject state, string headers, string body)
     : base(state, body)
 {
     _headers = new NameValueCollection();
     this.HeadersRaw = headers;
 }
Esempio n. 4
0
 internal Response(StateObject state, Request req)
 {
     this.Buffer = new byte[0];
     this.NetState = state;
     this.Request = req;
 }