public FileHttpRequest(AwesomeHttpContext httpContext, string path) { var lines = File.ReadAllText(path).Split('\n'); var request = lines[0].Split(' '); Method = request[0]; Path = request?[1]; this.HttpContext = httpContext; // this.Headers = new HeaderDictionary(); Headers.Add("ddd", "sss"); // HeaderDictionary nn = new HeaderDictionary(); var iscontain = Headers.ContainsKey("http"); }
public FileHttpResponse(AwesomeHttpContext httpContext, string path) { this.HttpContext = httpContext; this.path = path; }