public RequestWriter() { // All of Request's helper methods that wrap InnerRequest will use our instance as the InnerRequest InnerRequest = this; // Set up the delegate, configuring the ReadTheBody method as the method that *actually* reads the body, // but it's wrapped up in a delegate (ReadTheBodyDelegate) to allow for asynchronous calls ActuallyReadTheBody = new ReadTheBodyDelegate(ReadTheBody); SetValidDefaults(); }
public RequestWriter() { // All of Request's helper methods that wrap InnerRequest will use our instance as the InnerRequest InnerRequest = this; // Set up the delegate, configuring the ReadTheBody method as the method that *actually* reads the body, // but it's wrapped up in a delegate (ReadTheBodyDelegate) to allow for asynchronous calls ActuallyReadTheBody = new ReadTheBodyDelegate(ReadTheBody); SetValidDefaults(); }
public Req() { // Make the Request valid Method = "GET"; Uri = ""; Items = new Dictionary<string, object>(); Items["owin.base_path"] = ""; Items["owin.server_name"] = "localhost"; Items["owin.server_port"] = 80; Items["owin.request_protocol"] = "HTTP/1.1"; Items["owin.url_scheme"] = "http"; Items["owin.remote_endpoint"] = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 80); Headers = new Dictionary<string, IEnumerable<string>>(); ActuallyReadTheBody = new ReadTheBodyDelegate(ReadTheBody); }
public Req() { // Make the Request valid Method = "GET"; Uri = ""; Items = new Dictionary <string, object>(); Items["owin.base_path"] = ""; Items["owin.server_name"] = "localhost"; Items["owin.server_port"] = 80; Items["owin.request_protocol"] = "HTTP/1.1"; Items["owin.url_scheme"] = "http"; Items["owin.remote_endpoint"] = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 80); Headers = new Dictionary <string, IEnumerable <string> >(); ActuallyReadTheBody = new ReadTheBodyDelegate(ReadTheBody); }