public void WriteFileContents(File422 file) { Console.WriteLine("WriteFileContents(): "); // Generate Html string html = ""; // Stream fileStream = file.OpenReadOnly(); // byte[] buffer = new byte[8000]; _request.WriteHTMLResponse(html); }
public void WriteDirListing(Dir422 dir) { Console.WriteLine("WriteDirListing():XXXXXXXXXXXXXXXXXXXXXXXXXXXX "); string html = BuildDirHTML(dir); _request.AddHeader("Content-Length", html.Length.ToString()); _request.WriteHTMLResponse(html); }