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